CWinApp::LoadOEMCursor

HCURSOR LoadOEMCursor( UINT nIDCursor ) const;
返回值:如果成功,则返回光标的句柄;否则返回NULL。

参数:
nIDCursor指定了预定义的Windows光标的ODC_常量标识符。你必须在#include <afxwin.h>语句之前定义#define OEMRESOURCE,以获取对WINDOWS.H中OCR_常量的访问权限。

说明:
这个函数载入nIDCursor指定的Windows预定义光标。要访问预定义的Windows光标,应使用LoadOEMCursor或LoadStandardCursor成员函数。

示例:
// 在 stdafx.h 文件中,加入 #define OEMRESOURCE 以
// 包含windows.h 对OCR_值的定义
#define OEMRESOURCE
#include <afxwin.h> // MFC 内核和标准组件
#include <afxext.h> // MFC 扩展(包括VB)
HCURSOR hCursor;
// 载入预定义的Windows全尺寸光标
hCursor = AfxGetApp()->LoadOEMCursor(OCR_SIZEALL);

请参阅:
CWinApp::LoadCursor, CWinApp::LoadStandardCursor, ::LoadCursor