[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  TextOut( hDC, nRow, nCol, cText )-> <lSuccess>
------------------------------------------------------------------------------


 PARAMETER:

  <hDC>        Identifies the device context 

  <nRow>       Specifies the logical x-coordinate of the starting point
                   of the string. 

  <nCol>       Specifies the logical y-coordinate of the starting point
                   of the string.

  <cText>      The text to be drawn.


 RETURNS:

  <lSuccess> is TRUE if the function is successful


 DESCRIPTION:

  The TextOut function writes a character string at the specified location,
  using the currently selected font. 
  Character origins are at the upper-left corner of the character cell. 
  By default, the TextOut function does not use or update the current
  position. If an application must update the current position when calling
  TextOut, it can call the SetTextAlign function with the wFlags parameter
  set to TA_UPDATECP. When this flag is set, Windows ignores the <nRow>
  and <nCol> parameters on subsequent calls to the TextOut function, using
  the current position instead. 


  EXAMPLE:


    +-------------------------------------------------------------+
    |  /* output a String */                                      |
    |  hDC := getDC( oWnd:hWnd )                                  |
    |  TextOut( hDC, 10, 10 , "This is my String" )               |
    |  ReleaseDC( hDC )                                           |
    +-------------------------------------------------------------+


 SOURCE:

  SOURCE\WINAPI\TEXT.C



See Also: ExtTextOut SetTextAlign SetTextColor
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson