CWindow::SetIcon

HICON SetIcon( HICON hIcon, BOOL bBigIcon = TRUE );

Return Value

The handle to the previous icon.

Parameters

hIcon

[in] The handle to a new icon.

bBigIcon

[in] If TRUE (the default value), the method sets a large icon. Otherwise, it sets a small icon.

Remarks

Sets the window's large or small icon to the icon identified by hIcon. SetIcon sends a WM_SETICON message to the window.

CWindow OverviewClass Members

See Also   CWindow::GetIcon