术语 | setsystemcursor |
释义 | SetSystemCursor 语法: BOOL SetSystemCursor( HCURSOR hcur, DWORD id ); SetSystemCursor功能 该SetSystemCursor功能使应用程序自定义系统的游标。它取代由与本hcur参数指定的游标的内容ID参数指定的系统光标的内容,然后破坏hcur。 参数 hcur [in] 光标句柄。函数替换,与由hcur处理光标的内容ID指定的系统指针的内容。 该系统通过调用破坏DestroyCursor功能hcur。因此,hcur不能加载游标使用LoadCursor函数。要指定一个资源,加载复制使用CopyCursor游标游标函数,然后通过复制到SetSystemCursor。 编号 [in]指定系统光标换上hcur的内容。此参数可以是下列值之一。 OCR_APPSTARTING 标准的箭头和小沙漏 OCR_NORMAL 标准的箭头 OCR_CROSS 十字线 OCR_HAND 视窗2000/XP的:手 OCR_HELP 箭头和问号 OCR_IBEAM 工字钢 OCR_NO 削减圈 OCR_SIZEALL 四向箭头指向北,南,东,西 OCR_SIZENESW 双箭头指出,东北和西南 OCR_SIZENS 双箭头指出,北方和南方 OCR_SIZENWSE 双箭头指出,西北和东南 OCR_SIZEWE 双箭头指出,西部和东部地区 OCR_UP 垂直箭头 OCR_WAIT 沙漏 返回值 如果函数成功,返回值为非零。 如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。 备注 在申请使用OCR_任何常量,不断OEMRESOURCE必须在Windows.h头文件中定义包括在内。 功能信息 最低DLL版本 user32.dll 在Winuser.h中HeaderDeclared,头文件:winuser.h import libraryUser32.lib 最低操作系统Windows 95,Windows NT 3.5 UnicodeImplemented为Unicode版本。 参见 游标概述,DestroyCursor,LoadCursor,LoadCursorFromFile,SetCursor ==英文原文==SetSystemCursor Function The SetSystemCursor function enables an application to customize the system cursors. It replaces the contents of the system cursor specified by the id parameter with the contents of the cursor specified by the hcur parameter and then destroys hcur. Syntax BOOL SetSystemCursor( HCURSOR hcur, DWORD id ); Parameters hcur [in] Handle to a cursor. The function replaces the contents of the system cursor specified by id with the contents of the cursor handled by hcur. The system destroys hcur by calling the DestroyCursor function. Therefore, hcur cannot be a cursor loaded using the LoadCursor function. To specify a cursor loaded from a resource, copy the cursor using the CopyCursor function, then pass the copy to SetSystemCursor. id [in] Specifies the system cursor to replace with the contents of hcur. This parameter can be one of the following values. OCR_APPSTARTING Standard arrow and small hourglass OCR_NORMAL Standard arrow OCR_CROSS Crosshair OCR_HAND Windows 2000/XP: Hand OCR_HELP Arrow and question mark OCR_IBEAM I-beam OCR_NO Slashed circle OCR_SIZEALL Four-pointed arrow pointing north, south, east, and west OCR_SIZENESW Double-pointed arrow pointing northeast and southwest OCR_SIZENS Double-pointed arrow pointing north and south OCR_SIZENWSE Double-pointed arrow pointing northwest and southeast OCR_SIZEWE Double-pointed arrow pointing west and east OCR_UP Vertical arrow OCR_WAIT Hourglass Return Value If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError . Remarks For an application to use any of the OCR_ constants, the constant OEMRESOURCE must be defined before the Windows.h header file is included. Function Information Minimum DLL Versionuser32.dll HeaderDeclared in Winuser.h, include Windows.h Import libraryUser32.lib Minimum operating systemsWindows 95, Windows NT 3.5 UnicodeImplemented as Unicode version. See Also Cursors Overview , DestroyCursor , LoadCursor , LoadCursorFromFile , SetCursor ==原始网址==http://msdn.microsoft.com/en-us/library/ms648395(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。