CWinApp::LoadOEMCursor

 

nIDCursorで指定した Windows の OEM 組み込みカーソル リソースを読み込みます。

構文

      HCURSOR LoadOEMCursor(
   UINT nIDCursor 
) const;

パラメーター

  • nIDCursor
    Windows の定義済みカーソルを指定する OCR_ のマニフェスト定数の識別子。 WINDOWS.H.の OCR_ の定数にアクセスするため #include afxwin.h の前に #define OEMRESOURCE が必要です。

戻り値

成功した場合は、カーソルのハンドル; それ null

解説

Windows の定義済みカーソルへのアクセスに LoadOEMCursor または LoadStandardCursor のメンバー関数を使用します。

使用例

// In the stdafx.h file, add #define OEMRESOURCE to
// include the windows.h definitions of OCR_ values.
#define OEMRESOURCE
#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions
HCURSOR hCursor;
// Load the predefined WIndows "size all" cursor.
hCursor = AfxGetApp()->LoadOEMCursor(OCR_SIZEALL);

必要条件

ヘッダー: afxwin.h

参照

CWinApp クラス
階層図
CWinApp::LoadCursor
CWinApp::LoadStandardCursor
LoadCursor