This method gets a cache presentation space.

#define INCL_WINWINDOWMGR /* Or use INCL_WIN, INCL_PM, Also in COMMON section */
#include <os2.h>

HWND    hwnd;  /*  Handle of window for which the presentation space is required. */
HPS     hps;   /*  Presentation-space handle that can be used for drawing in the window. */

hps = WinGetPS(hwnd);


[Back] [Next]