EndPaint

  BOOL EndPaint(hwnd, lpPaint)    
  HWND hwnd; /* handle of window */
  LPPAINTSTRUCT lpPaint; /* address of structure for paint data */

This function marks the end of painting in the given window. The EndPaint function is required for each call to the BeginPaint function, but only after painting is complete.

Parameters

hwnd

Identifies the window that is repainted.

lpPaint

Points to a PAINTSTRUCT structure that contains the painting information retrieved by the BeginPaint function.

Return Value

Returns TRUE for success, FALSE for failure.

Comments

If the caret was hidden by the BeginPaint function, EndPaint restores the caret to the screen.

See Also

BeginPaint