This function converts a rectangle to a graphics rectangle.

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

HAB       hab;   /*  Anchor-block handle. */
PRECTL    pwrc;  /*  Rectangle to be converted. */
BOOL      rc;    /*  Success indicator. */

rc = WinMakeRect(hab, pwrc);


[Back] [Next]