This method marks the end of painting.
void EndPaint( LPPAINTSTRUCT lpPaint );
CWindow Overview, CWindow Methods, CWindow::BeginPaint