Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This function draws a character string by using the currently selected font. An optional rectangle may be provided, to be used for clipping, opaquing, or both.
BOOL ExtTextOut( HDC hdc , int X , int Y , UINT fuOptions , const RECT * lprc , LPCTSTR lpString , UINT cbCount , const int * lpDx );
Parameters
Value | Description |
---|---|
ETO_CLIPPED | The text will be clipped to the rectangle. |
ETO_OPAQUE | The current background color should be used to fill the rectangle. |
Return Values
Nonzero indicates that the string is drawn. Zero indicates failure. To get extended error information, call GetLastError.
Remarks
The current text-alignment settings for the specified DC determine how the reference point is used to position the text.
If the lpDxparameter is NULL, the ExtTextOutfunction uses the default spacing between characters. The character-cell origins and the contents of the array pointed to by the lpDxparameter are given in logical units. A character-cell origin is defined as the upper-left corner of the character cell.
By default, the current position is not used or updated by this function. However, an application can call the SetTextAlignfunction with the fModeparameter set to TA_UPDATECP to permit the system to use and update the current position each time the application calls ExtTextOutfor a specified DC. When this flag is set, the system ignores the Xand Yparameters on subsequent ExtTextOutcalls.
Requirements
Runs on | Versions | Defined in | Include | Link to |
---|---|---|---|---|
Windows CE OS | 1.0 and later | Wingdi.h | Mgrast.lib Mgtt.lib |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
See Also