[ Home |
Alpha index |
Topic index |
Tutorials |
Download |
Feedback ]
The OS/2 API Project
WinEndPaint
[ Syntax |
Params |
Returns |
Include |
Usage |
Structs |
Gotchas |
Code |
Also ]
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.
Include Info
#define INCL_WINWINDOWMGR
#include <os2.h>
Usage Explanation
This function is called when drawing in a window is complete.
Relevant Structures
Gotchas
Sample Code
#define INCL_WINWINDOWMGR
#include
.
.
.
case WM_PAINT:
hps = WinBeginPaint(hwnd, NULLHANDLE, NULL);
WinQueryWindowRect(hwnd, &rcl);
WinDrawText(hps, -1, "Hello World", &rcl, CLR_NEUTRAL, CLR_BACKGROUND,
DT_CENTER | DT_VCENTER | DT_ERASERECT);
WinEndPaint(hps);
return 0;
.
.
.
See Also
WinBeginPaint,
WinExcludeUpdateRegion,
WinGetClipPS,
WinGetPS,
WinGetScreenPS,
WinInvalidateRect,
WinInvalidateRegion,
WinIsWindowShowing,
WinIsWindowVisible,
WinLockVisRegions,
WinOpenWindowDC,
WinQueryUpdateRect,
WinQueryUpdateRegion,
WinRealizePalette,
WinReleasePS,
WinShowWindow,
WinUpdateWindow,
WinValidateRect,
WinValidateRegion
Author
Bill Buchanan -
billb@ic.net
Additions
Last modified July 12/1996
Please send all errors, comments, and suggestions to:
timur@vnet.ibm.com
The OS/2 API Project |
WinEndPaint |