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 );
Specifies the device-context object.
Nonzero if it erases the background; otherwise, it is zero.