Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!linac!att!emory!hubcap!ibmman From: ibmman@eng.clemson.edu (Larry Salomon) Newsgroups: comp.os.os2.programmer Subject: Re: GPI Question Message-ID: <13237@hubcap.clemson.edu> Date: 21 Feb 91 22:55:26 GMT References: <1991Feb20.211007.8081@terminator.cc.umich.edu> Sender: news@hubcap.clemson.edu Distribution: na Lines: 21 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