BCGSuite for MFC
HICON CBCGPGlobalUtils::GetWndIcon ( CWnd *  pWnd,
BOOL *  bDestroyIcon = NULL,
BOOL  bNoDefault = TRUE 
)

Returns window icon.

Call this method to retrieve a window icon.

Parameters
pWndA pointer to a window whose icon should be retrieved.
bDestroyIconA pointer to boolean, that contains TRUE when the method returns if the caller is responsible for calling DestroyIcon.
bNoDefaultTRUE - do not return default application icon if window specific icon was not found.