CButton::GetCursor

HCURSOR GetCursor( );

Return Value

A handle to a cursor image. NULL if no cursor is previously specified.

Remarks

Call this member function to get the handle of a cursor, previously set with SetCursor, that is associated with a button.

Example

CButton myButton;

// Create an icon button.
myButton.Create(_T("My button"), WS_CHILD|WS_VISIBLE|BS_ICON, 
   CRect(10,10,60,50), pParentWnd, 1);

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

CButton OverviewClass MembersHierarchy Chart

See Also   CButton::SetCursor, CBitmapButton::LoadBitmaps, Bitmaps