Condividi tramite


CWindow::GetIcon

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

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

Reference

CWindow Class

CWindow::SetIcon