1 out of 2 rated this helpful - Rate this topic

EndPaint function

Applies to: desktop apps only

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

Syntax

BOOL EndPaint(
  __in  HWND hWnd,
  __in  const PAINTSTRUCT *lpPaint
);

Parameters

hWnd [in]

Handle to the window that has been repainted.

lpPaint [in]

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

Return value

The return value is always nonzero.

Remarks

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

EndPaint releases the display device context that BeginPaint retrieved.

Examples

For an example, see Drawing in the Client Area.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Winuser.h (include Windows.h)

Library

User32.lib

DLL

User32.dll

See also

Painting and Drawing Overview
Painting and Drawing Functions
BeginPaint
PAINTSTRUCT

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ