⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 w_rstcur.c

📁 [随书类]Dos6.0源代码
💻 C
字号:
/***************************************************************************/
/*																									*/
/*	W_RSTCUR.C																					*/
/*                                                                         */
/*		Copyright (c) 1991 - Microsoft Corp.											*/
/*		All rights reserved.																	*/
/*		Microsoft Confidential																*/
/*                                                                         */
/* Displays the cursor at the screen position and size specified in the		*/
/* argument as an unsigned long with the  position in the high byte and		*/
/*	size in the low byte.																	*/
/*																									*/
/*	void RestoreCursor( unsigned long Cursor )										*/
/*																									*/
/*	ARGUMENTS:	Cursor	- Cursor size & position returned by SaveCursor()	*/
/* RETURNS:		void																			*/
/*																									*/
/* johnhe - 03/15/89																			*/
/***************************************************************************/

#include		<bios_io.h>

void RestoreCursor( unsigned long Cursor )
{
	unsigned 		CursPos;
	unsigned			CursSize;

	CursPos  = (unsigned)(Cursor >> 16);
	CursSize = (unsigned)(Cursor & 0xffff);

	VideoSetRowCol( CursPos >> 8, CursPos & 0xff );
	VideoSetCursSize( CursSize );
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -