This function subtracts one rectangle from another.

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

HAB       hab;       /*  Anchor-block handle. */
PRECTL    prclDest;  /*  Result. */
PRECTL    prclSrc1;  /*  First source rectangle. */
PRECTL    prclSrc2;  /*  Second source rectangle. */
BOOL      rc;        /*  Not-empty indicator. */

rc = WinSubtractRect(hab, prclDest, prclSrc1,
       prclSrc2);


[Back] [Next]