Compartir a través de


CButton::GetCursor

Llame a esta función miembro para obtener el identificador del cursor, establecido previamente con SetCursor, que está asociado a un botón.

HCURSOR GetCursor( ); 

Valor devuelto

Un identificador a una imagen del cursor. NULL si no se especifica ningún cursor previamente.

Ejemplo

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));

Requisitos

encabezado: afxwin.h

Vea también

Referencia

CButton Class

Gráfico de jerarquías

CButton::SetCursor

CBitmapButton::LoadBitmaps

Bitmaps