CWnd::OnEraseBkgnd
This method is called by the framework when the CWnd object background needs erasing. For example, when a window is resized. It is called to prepare an invalidated region for painting.
afx_msg BOOL OnEraseBkgnd(
CDC* pDC );
Parameters
pDC
Specifies the device-context object.
Return Value
Nonzero if it erases the background; otherwise, it is zero.