Udostępnij za pośrednictwem


CWinApp::LoadOEMCursor

Ładunki Windows wstępnie zasobów kursor określonej przez nIDCursor.

HCURSOR LoadOEMCursor(
   UINT nIDCursor 
) const;

Parametry

  • nIDCursor
    OCR_ manifest stałej identyfikator, który określa wstępnie kursor systemu Windows.Musi mieć # define OEMRESOURCE przed # include <afxwin.h> Aby uzyskać dostęp do OCR_ stałych w systemie WINDOWS.H.

Wartość zwracana

Dojście kursora, w przypadku powodzenia; w przeciwnym razie NULL.

Uwagi

Użyj LoadOEMCursor lub LoadStandardCursor Członkowskich funkcji dostępu wstępnie kursorów systemu Windows.

Przykład

// 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);

Wymagania

Nagłówek: afxwin.h

Zobacz też

Informacje

Klasa CWinApp

Wykres hierarchii

CWinApp::LoadCursor

CWinApp::LoadStandardCursor

LoadCursor