Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.


Gets the handle of the cursor, previously set with SetCursor, that is associated with CStatic.

HCURSOR GetCursor( );

A handle to the current cursor, or NULL if no cursor has been set.

CStatic myStatic;

// Create a child icon static control.
myStatic.Create(_T("my static"), 

// If no image is defined for the static control, define the image 
// to the system arrow and question mark cursor.
if (myStatic.GetCursor() == NULL)
   myStatic.SetCursor( ::LoadCursor(NULL, IDC_HELP) );

Community Additions

© 2015 Microsoft