CWnd::OnPaintIcon

Syntax

afx_msg void OnPaintIcon();

Remarks

Called by a minimized (iconic) CWnd when the icon is to be painted.

A window receives this call only if a class icon is defined for the window; otherwise, the OnPaint member function is called instead. OnPaintIcon permits Windows to paint the icon with the class icon.

This message-handler member function calls the Default member function. Override this member function in your derived class to handle the WM_PAINTICON message.

See Also

WM_PAINT, WM_PAINTICON, CWnd::Default