Skip to content

Latest commit

 

History

History
100 lines (71 loc) · 2.87 KB

nf-winuser-endpaint.md

File metadata and controls

100 lines (71 loc) · 2.87 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name req.apiset
NF:winuser.EndPaint
EndPaint function (winuser.h)
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.
EndPaint
EndPaint function [Windows GDI]
_win32_EndPaint
gdi.endpaint
winuser/EndPaint
gdi\endpaint.htm
gdi
b07cfed9-21c4-4459-855a-eaf4d1d34ab8
12/05/2018
EndPaint, EndPaint function [Windows GDI], _win32_EndPaint, gdi.endpaint, winuser/EndPaint
winuser.h
Windows.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
User32.lib
User32.dll
Windows
19H1
EndPaint
winuser/EndPaint
c++
APIRef
kbSyntax
DllExport
user32.dll
Ext-MS-Win-NTUser-Draw-l1-1-0.dll
Ext-MS-Win-NTUser-Draw-l1-1-1.dll
ext-ms-win-ntuser-draw-l1-1-2.dll
EndPaint
ext-ms-win-ntuser-draw-l1-1-0 (introduced in Windows 8)

EndPaint function

-description

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.

-parameters

-param hWnd [in]

Handle to the window that has been repainted.

-param lpPaint [in]

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

-returns

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.

-see-also

BeginPaint

PAINTSTRUCT

Painting and Drawing Functions

Painting and Drawing Overview