Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CWnd::SetIcon
Collapse the table of content
Expand the table of content

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

Community Additions

ADD
Show:
© 2015 Microsoft