WinEndPaint

This function is called when drawing in a window is complete.

Syntax
rc = WinEndPaint( hps );

Parameters

 * HPS hps (input):A handle to presentation space returned from WinBeginPaint.

Returns

 * BOOL rc:A success indicator.
 * TRUE = Call successful.
 * FALSE = An error occurred.

Sample Code
.  .   . case WM_PAINT: hps = WinBeginPaint(hwnd, NULLHANDLE, NULL);
 * 1) define INCL_WINWINDOWMGR
 * 2) include 

WinQueryWindowRect(hwnd, &rcl);

WinDrawText(hps, -1, "Hello World", &rcl, CLR_NEUTRAL, CLR_BACKGROUND,               DT_CENTER | DT_VCENTER | DT_ERASERECT);

WinEndPaint(hps); return 0; .  ..