Поделиться через


CWnd::SetIcon

Call this member function to set the handle to a specific icon, as identified by hIcon.

HICON SetIcon(
   HICON hIcon,
   BOOL bBigIcon 
);

Параметры

  • hIcon
    A handle to a previous icon.

  • bBigIcon
    Specifies a 32 pixel by 32 pixel icon if TRUE; specifies a 16 pixel by 16 pixel icon if FALSE.

Возвращаемое значение

A handle to an icon.

Заметки

When the window class is registered, it selects an icon.

Пример

See the example for CWnd::GetSystemMenu.

Требования

Header: afxwin.h

См. также

Основные понятия

CWnd Class

CWnd Members

Hierarchy Chart

CWnd::GetIcon