w_savcur.c
来自「[随书类]Dos6.0源代码」· C语言 代码 · 共 32 行
C
32 行
/***************************************************************************/
/* */
/* W_SAVCUR.C */
/* */
/* Copyright (c) 1991 - Microsoft Corp. */
/* All rights reserved. */
/* Microsoft Confidential */
/* */
/* Returns the size and position of the cursor as an unsigned long value */
/* with the position in the high byte and size in the low byte. */
/* */
/* unsigned long SaveCursor ( void ) */
/* */
/* ARGUMENTS: NONE */
/* RETURNS: unsigned long - Cursor screen position and size */
/* */
/* johnhe - 03/15/89 */
/***************************************************************************/
#include <bios_io.h>
unsigned long SaveCursor ( void )
{
unsigned long CursorSizePos;
CursorSizePos = (unsigned long)(VideoGetRowCol()) << 16;
CursorSizePos += (unsigned long)(VideoGetCursSize());
return( CursorSizePos );
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?