MFC加载系统鼠标/系统预定义鼠标方法

来源:互联网 发布:宝宝学字软件 编辑:程序博客网 时间:2024/03/29 09:47

1、 LoadCursor

HCURSOR LoadCursor(          HINSTANCE hInstance,    LPCTSTR lpCursorName);
加载一个光标资源到一个指定的可执行文件实例句柄(注:该函数已经被LoadImage所取代);
MFC中如果想要加载系统鼠标,可以调用该接口,此时需要将参数hInstance置为NULL,lpCursorName设置为以下值:

IDC_APPSTARTING
Standard arrow and small hourglass(标准箭头和小沙漏)
IDC_ARROW
Standard arrow(标准箭头)
IDC_CROSS
Crosshair(十字光标)
IDC_HAND
Windows 98/Me, Windows 2000/XP: Hand
IDC_HELP
Arrow and question mark(标准的箭头和问号)
IDC_IBEAM
I-beam(工字光标)
IDC_ICON
Obsolete for applications marked version 4.0 or later.
IDC_NO
Slashed circle(禁止圈)
IDC_SIZE
Obsolete for applications marked version 4.0 or later. Use IDC_SIZEALL.
IDC_SIZEALL
Four-pointed arrow pointing north, south, east, and west(四向箭头指向东、西、南、北)
IDC_SIZENESW
Double-pointed arrow pointing northeast and southwest(双箭头指向东北和西南)
IDC_SIZENS
Double-pointed arrow pointing north and south(双箭头指向南北)
IDC_SIZENWSE
Double-pointed arrow pointing northwest and southeast(双箭头指向西北和东南)
IDC_SIZEWE
Double-pointed arrow pointing west and east(双箭头指向东西)
IDC_UPARROW
Vertical arrow(垂直箭头)
IDC_WAIT
Hourglass(沙漏)

0 0
原创粉丝点击