CWindow::EndPaint

void EndPaint( LPPAINTSTRUCT lpPaint );

See EndPaint in the Win32 SDK.

Remarks

Marks the end of painting.

Example

//The following example attaches an HWND to the CWindow object and 
//calls CWindow::EndPaint() in the WM_PAINT handler of a 
//CWindowImpl-derived class

LRESULT OnPaint(UINT nMsg, WPARAM wParam,LPARAM lParam, BOOL& bHandled)
{
   ...
   CWindow myWindow;
   myWindow.Attach(m_hWnd);
   PAINTSTRUCT ps;
   HDC hDC  = myWindow.BeginPaint(&ps);
   //Use hDC as much as you want
   ...
   ...
   myWindow.EndPaint(&ps);
   return 0L;
}

CWindow OverviewClass Members

See Also   CWindow::BeginPaint