CStatic::GetCursor

Obtém o identificador do cursor, anteriormente conjunto com conjunto Cursor, que é associado a CStatic.

HCURSOR GetCursor( );

Valor de retorno

Um identificador para o cursor corrente, ou NULO se nenhum cursor tiver sido definida.

Exemplo

CStatic myStatic;

// Create a child icon static control.
myStatic.Create(_T("my static"), 
   WS_CHILD|WS_VISIBLE|SS_ICON|SS_CENTERIMAGE, CRect(10,10,150,50), 
   pParentWnd);

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

Requisitos

Cabeçalho: afxwin.h

Consulte também

Referência

Classe CStatic

Gráfico de hierarquia

CStatic::SetCursor

STM_GETIMAGE

Cursors

Outros recursos

CStatic membros