Freigeben über


CWindow::SetIcon

Sets the window's large or small icon to the icon identified by hIcon.

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

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.

Return Value

The handle to the previous icon.

Remarks

SetIcon sends a WM_SETICON message to the window.

Requirements

Header: atlwin.h

See Also

Reference

CWindow Class

CWindow::GetIcon

Other Resources

CWindow Members