EndPaint

Syntax

void EndPaint(hWnd,lpPaint)

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.

Parameter Type/Description  

hWnd HWND Identifies the window that is repainted.  
lpPaint LPPAINTSTRUCT Points to a PAINTSTRUCT data structure that contains the painting information retrieved by the BeginPaint function.  

Return Value

None.

Comments

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