CWnd::OnNcPaint
afx_msgvoidOnNcPaint();
Remarks
The framework calls this member function when the nonclient area needs to be painted. The default implementation paints the window frame.
An application can override this call and paint its own custom window frame. The clipping region is always rectangular, even if the shape of the frame is altered.