 |
DrawText ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The DrawText function draws formatted text in the specified rectangle. It formats the text according to the specified method (expanding tabs, justifying characters, breaking lines, and so forth). |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
int DrawText(
HDC hDC, // handle to DC
LPCTSTR lpString, // text to draw
int nCount, // text length
LPRECT lpRect, // formatting dimensions
UINT uFormat // text-drawing options
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER DrawText IN user32;
INTEGER hDC,;
STRING lpString,;
INTEGER nCount,;
STRING @ lpRect,;
INTEGER uFormat
|
 |
 |
 |
| Parameters: |
 |
hDC
[in] Handle to the device context.
lpString
[in] Pointer to the string that specifies the text to be drawn.
nCount
[in] Specifies the length of the string.
lpRect
[in/out] Pointer to a RECT structure that contains the rectangle (in logical coordinates) in which the text is to be formatted.
uFormat
[in] Specifies the method of formatting the text.
|
 |
 |
| Return value: |
 |
If the function succeeds, the return value is the height of the text in logical units.
If the function fails, the return value is zero. |
 |
 |
| My comment: |
 |
| See also: TextOut, CreateFont |
 |
 |
| Word Index links for the DrawText : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2002-04-20 14:54:09 | | Modified: | 2005-12-19 08:03:08 | Visited in last 7 days: 28 |