CWnd::OnIconEraseBkgnd

Syntax

afx_msg void OnIconEraseBkgnd( CDC* pDC );

Parameters

pDC

Specifies the device-context object of the icon. May be temporary, and should not be stored for later use.

Remarks

Called for a minimized (iconic) CWnd when the background of the icon must be filled before painting the icon. CWnd receives this call only if a class icon is defined for the window; otherwise, the WM_ERASEBKGND message is sent instead.

The DefWindowProc member function fills the icon background with the background brush of the parent window.

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

See Also

CWnd::Default, WM_ERASEBKGND, WM_ICONERASEBKGND