Aracılığıyla paylaş


CStatic::GetIcon

Tanıtıcı ile önceden ayarlanmış simgesinin alır SetIcon, yani ilişkili CStatic.

HICON GetIcon( ) const;

Dönüş Değeri

Geçerli simge için bir tanıtıcı veya null hiçbir simge ayarlarsanız.

Örnek

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 icon is defined for the static control, define the icon 
// to the system error icon.
if (myStatic.GetIcon() == NULL)
   myStatic.SetIcon(::LoadIcon(NULL, IDI_ERROR));   

Gereksinimler

Başlık: afxwin.h

Ayrıca bkz.

Başvuru

CStatic sınıfı

Hiyerarşi grafik

CStatic::SetIcon

STM_GETICON

Icons