This function draws a single line of formatted text into a specified rectangle.

#define INCL_WINWINDOWMGR /* Or use INCL_WIN, INCL_PM, */
#include <os2.h>

HPS       hps;       /*  Presentation-space handle. */
LONG      cchText;   /*  Count of the number of characters in the string. */
PCH       lpchText;  /*  Character string to be drawn. */
PRECTL    prcl;      /*  Text rectangle. */
LONG      clrFore;   /*  Foreground color. */
LONG      clrBack;   /*  Background color. */
ULONG     flCmd;     /*  An array of flags that determines how the text is drawn. */
LONG      lChars;    /*  Count of characters drawn within the rectangle. */

lChars = WinDrawText(hps, cchText, lpchText,
           prcl, clrFore, clrBack, flCmd);


[Back] [Next]