CButton::GetCursor

调用该成员函数获取光标的句柄,以前设置与 SetCursor,与按钮。

HCURSOR GetCursor( ); 

返回值

为光标图像的句柄。 NULL,如果光标以前未指定。

示例

CButton myIconButton;

// Create an icon button.
myIconButton.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 (myIconButton.GetCursor() == NULL)
   myIconButton.SetCursor(::LoadCursor(NULL, IDC_HELP));

要求

Header: afxwin.h

请参见

参考

CButton Class

层次结构图

CButton::SetCursor

CBitmapButton::LoadBitmaps

Bitmaps