Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CWinApp::LoadCursor
◄CWinApp►                                     ◄Up► ◄Contents► ◄Index► ◄Back►
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  HCURSOR LoadCursor( LPSTR lpCursorName );
  HCURSOR LoadCursor( UINT nIDCursor );
 
  Parameter      Description
 
  <lpCursorName> Points to a null-terminated string that contains the name
                 of the cursor resource. You can use a CString in place of
                 an LPSTR.
 
  <nIDCursor>    ID number of the resource.
 
  Remarks
 
  Loads the cursor resource named by <lpCursorName> or specified by
  <nIDCursor> from the current executable file. LoadCursor loads the
  cursor into memory only if it has not been previously loaded.
 
  Use the ◄LoadStandardCursor► or ◄LoadOEMCursor► member functions to
  access the predefined Windows cursors.
 
  Return Value
 
  A handle to a cursor resource. If unsuccessful, returns NULL.
 
  See Also
 
  ◄CWinApp::LoadStandardCursor►, ◄CWinApp::LoadOEMCursor►, ◄::LoadCursor►
 
 
                                     -♦-