[comp.os.os2.programmer] GPI Question

ibmman@eng.clemson.edu (Larry Salomon) (02/22/91)

What about this:

Given rectl of type RECTL containing the box you want to draw...

GpiMove(hps,(PPOINTL)&rectl.xLeft);
GpiSetColor(hps,CLR_BLACK);
GpiBox(hps,DRO_OUTLINE,(PPOINTL)&rectl.xRight,0L,0L);
WinInflateRect(hab,&rectl,-sCxThick,-sCyThick);
GpiMove(hps,(PPOINTL)&rectl.xLeft);
GpiSetColor(hps,CLR_RED);
GpiBox(hps,DRO_OUTLINE,(PPOINTL)&rectl.xRight,0L,0L);

Of course, you should have 

#define INCL_GPIPRIMITIVES
#define INCL_WINRECTANGLES

at the top of the file.

Cheers,
Q