CWindow::SetIcon

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

Syntax

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

At a Glance

Header file: Atlwin.h
Platforms:
Versions: Version 2.0 and later
Complete documentation: Visual C++ documentation

See Also

CWindow Overview, CWindow Methods, CWindow::GetIcon