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.
BOOL EndPaint( HWND hWnd, const PAINTSTRUCT *lpPaint );
Handle to the window that has been repainted.
The return value is always nonzero.
If the caret was hidden by BeginPaint, EndPaint restores the caret to the screen.
EndPaint releases the display device context that BeginPaint retrieved.
For an example, see Drawing in the Client Area.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||winuser.h (include Windows.h)|
|API set||ext-ms-win-ntuser-draw-l1-1-0 (introduced in Windows 8)|