DrawNChars

This function similar to DrawText, except that MaxChars specifies the maximum number of characters in the text string to display. If the total string length is greater than MaxChars, only the first MaxChars characters will be displayed.

    int x                   Horizontal location of the starting character.  
    int y                   Vertical location of the starting character.  
    char _far *Buffer       Pointer to buffer containing the string to be displayed.  
    UINT Style              Style for the text.  
    UINT Font               Font for the text.  
    UINT MaxChars           Maximum number of characters in the text string to display.  
    DRAW_NORMAL.        The charactersare drawn as black on a white background.  
    DRAW_INVERSE.       The characters are drawn as white on a black background.  
    DRAW_UNDERLINE.     The characters are drawn underlined.  
    DRAW_GRAY.          The characters are drawn in "gray", i.e. a checkerboard
                        mask is ANDed over the characters.  
    DRAW_AMPERSAND.     Any "&"s in the string underline the following character
The supported font values are
    FONT_DEFAULT.       The current font setting.  
    FONT_SMALL.         The 8x8 font.  
    FONT_NORMAL.        The 10x11 font.  
    FONT_LARGE.         The 16x12 font.