Skip to content

Latest commit

 

History

History
75 lines (55 loc) · 2.24 KB

TextOut.md

File metadata and controls

75 lines (55 loc) · 2.24 KB

Home

Function name : TextOut

Group: Font and Text - Library: gdi32


Writes a character string at the specified location, using the currently selected font, background color, and text color.


Code examples:

Printing text on the client area of the main VFP window
Printing text on the main VFP window
Creating a window using CreateWindowEx function
Using FrameRgn for displaying system colors
Creating a clipping region from the path selected into the device context of a form
Splash Screen for the VFP application
Using Font and Text functions
How to put a horizontal text scrolling on the form (a news line, marquee)
How to put a vertical text scrolling on the form (a movie cast)
Printing text with the Escape function
Vertical Label control

Declaration:

BOOL TextOut(
  HDC hdc,           // handle to DC
  int nXStart,       // x-coordinate of starting position
  int nYStart,       // y-coordinate of starting position
  LPCTSTR lpString,  // character string
  int cbString       // number of characters
);  

FoxPro declaration:

DECLARE INTEGER TextOut IN gdi32;
    INTEGER hdc,;
    INTEGER x,;
    INTEGER y,;
    STRING  lpString,;
    INTEGER nCount  

Parameters:

hdc [in] Handle to the device context.

nXStart [in] Specifies the logical x-coordinate of the reference point that the system uses to align the string.

nYStart [in] Specifies the logical y-coordinate of the reference point that the system uses to align the string.

lpString [in] Pointer to the string to be drawn


Return value:

If the function succeeds, the return value is nonzero


Comments:

See also: DrawText, CreateFont.