CWinApp::LoadOEMCursor
Visual Studio 2012
Loads the Windows predefined cursor resource specified by nIDCursor.
HCURSOR LoadOEMCursor( UINT nIDCursor ) const;
Use the LoadOEMCursor or LoadStandardCursor member function to access the predefined Windows cursors.
// 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);