EndPaint

2.x

  void EndPaint(hwnd, lpps)    
  HWND hwnd; /* handle of window, */  
  const PAINTSTRUCT FAR* lpps; /* address of structure for paint data */

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

Parameters

hwnd

Identifies the window that has been repainted.

lpps

Points to a PAINTSTRUCT structure that contains the painting information retrieved by the BeginPaint function. The PAINTSTRUCT structure has the following form:

typedef struct tagPAINTSTRUCT {     /* ps */
   HDC  hdc;
   BOOL fErase;
   RECT rcPaint;
   BOOL fRestore;
   BOOL fIncUpdate;
   BYTE rgbReserved[16];
} PAINTSTRUCT;

For a full description of this structure, see the Microsoft Windows Programmer's Reference, Volume 3.

Return Value

This function does not return a value.

Comments

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

See Also

BeginPaint