This function offsets a rectangle.
#define INCL_WINRECTANGLES /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HAB hab; /* Anchor-block handle. */ PRECTL prcl; /* Rectangle to be offset. */ LONG cx; /* x-value of offset. */ LONG cy; /* y-value of offset. */ BOOL rc; /* Success indicator. */ rc = WinOffsetRect(hab, prcl, cx, cy);