This function queries the values of presentation parameters for a window.

#define INCL_WINSYS /* Or use INCL_WIN, INCL_PM, */
#include <os2.h>

HWND      hwnd;              /*  Window handle whose presentation is to be queried. */
ULONG     idAttrType1;       /*  First presentation parameter to retrieve. */
ULONG     idAttrType2;       /*  Second presentation parameter to retrieve. */
PULONG    pidAttrTypeFound;  /*  Presentation parameter attribute found. */
ULONG     cbAttrValueLen;    /*  Size of the buffer pointed to by the pAttrValue parameter. */
PPVOID    pAttrValue;        /*  Attribute value. */
ULONG     flOptions;         /*  Options controlling the query. */
ULONG     cbRetLen;          /*  Length of presentation parameter value. passed back. */

cbRetLen = WinQueryPresParam(hwnd, idAttrType1,
             idAttrType2, pidAttrTypeFound,
             cbAttrValueLen, pAttrValue, flOptions);


[Back] [Next]