The following figure shows an example of how to draw a segment chain using GpiDrawChain.
#define INCL_GPICONTROL #include <os2.h> void fncSEGS03(void){ HPS hps; if (DM_DRAW != GpiQueryDrawingMode(hps)) GpiSetDrawingMode(hps, DM_DRAW); GpiDrawChain(hps); } /* fncSEGS03 */