This function draws the borders and interior of a rectangle.
#define INCL_WINWINDOWMGR /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HPS hps; /* Presentation-space handle. */ PRECTL prcl; /* Bounding rectangle for the border. */ LONG cx; /* Width of border rectangle vertical sides. */ LONG cy; /* Width of border rectangle horizontal sides. */ LONG clrFore; /* Color of edge of border. */ LONG clrBack; /* Color of interior of border. */ ULONG flCmd; /* Flags controlling the way in which the border is drawn. */ BOOL rc; /* Success indicator. */ rc = WinDrawBorder(hps, prcl, cx, cy, clrFore, clrBack, flCmd);