void CMainFrame::OnPaint()
{
CPaintDC dc(this); // device context for painting
// TODO: Add your message handler code here
CRect rc;
GetClientRect(&rc);
ASSERT(rc!=NULL);
dc.Ellipse(rc); // Do not call CFrameWnd::OnPaint() for painting messages
}
{
CPaintDC dc(this); // device context for painting
// TODO: Add your message handler code here
CRect rc;
GetClientRect(&rc);
ASSERT(rc!=NULL);
dc.Ellipse(rc); // Do not call CFrameWnd::OnPaint() for painting messages
}
bErase :Specifies whether the background within the update region is to be erased.