CWindow::GetIcon

 

Retrieves the handle to the window's large or small icon.

Syntax

HICON GetIcon( BOOL 
bBigIcon
 = TRUE ) const;

Parameters

  • bBigIcon
    [in] If TRUE (the default value) the method returns the large icon. Otherwise, it returns the small icon.

Return Value

An icon handle.

Remarks

GetIcon sends a WM_GETICON message to the window.

Requirements

Header: atlwin.h

See Also

CWindow Class
CWindow::SetIcon