Home > Back-end >  A great god, please give directions, duilib how to realize the Arabic UI display from right to left
A great god, please give directions, duilib how to realize the Arabic UI display from right to left

Time:03-09

Words, the various controls (button, edit box, progress bar, a drop-down box) how to set up, what attributes named, online search less than such data

CodePudding user response:

ExtTextOut
The ExtTextOut function draws a character string by using The currently selected font, background color, and The text color. An optional rectangle may be provided, to be 2 for clipping, opaquing, or both.

BOOL ExtTextOut (
HDC HDC,//handle to the device context
Int X,//X coordinate of the reference point
Int Y,//Y - coordinate of reference point
UINT fuOptions,//text - the output options
CONST LPRC the RECT * and//optional clipping and/or opaquing rectangle
LPCTSTR lpString,//points to the string
UINT cbCount,//the number of characters in the string
CONST INT * lpDx//a pointer to an array of intercharacter spacing
//values
);

The Parameters
HDC
Handle to the device context.
X
Specifies the logical x coordinate of the reference point, informs the to the position of the string.
Y
Specifies the logical - y coordinate of the reference point, informs the to the position of the string.
FuOptions
Specifies how to use the application - defined rectangle. This parameter can be a combination of the following values: Value a fancy
ETO_CLIPPED The text will be clipped to The rectangle.
ETO_GLYPH_INDEX The lpString array refers to an array returned from GetCharacterPlacement and should be parsed directly by GDI as no further language-specific processing is required. Glyph indexing only applies to TrueType fonts, but the flag can be used for bitmap and vector fonts to indicate no further language processing is necessary and GDI should process the string directly. Note that all glyph indices are 16-bit values even though the string is assumed to be an array of 8-bit values for raster fonts.
ETO_OPAQUE The current background color should be 2 fill The rectangle.
ETO_RTLREADING Middle - Eastern Windows: If this value is specified and a Hebrew or Arabic font is selected into the device context, the string is output using right - to - order left reading. If this value is not specified, the string is output in left - to - right order. The same effect can be achieved by setting the value in TA_RTLREADING SetTextAlign. This value is preserved for backward compatability.


The ETO_GLYPH_INDEX and ETO_RTLREADING values always be 2 together. Because ETO_GLYPH_INDEX The implies that all language processing has had been completed, The function ignores The ETO_RTLREADING flag if also specified.

LPRC
Pointer to an optional the RECT structure that specifies the dimensions of a rectangle that is 2 for clipping, opaquing, or both.
LpString
Pointer to the character string to be drawn. The string does not need to be zero - terminated, since cbCount specifies the length of the string.
CbCount
Specifies the number of characters in the string.
LpDx
Pointer to an optional array of values that indicate the short between origins of adjacent character cells. For example, lpDx [I] logical units separate the origins of a character cell and I character cell I + 1.
The Return Values
If the string is drawn, the return value is nonzero.

If the function fails, the return value is zero.

Windows NT: the To get extended error information, callGetLastError.

Few
The current text - alignment Settings for The specified device context determine how The reference point is 2 position of The text, The text - alignment Settings are retrieved by calling The GetTextAlign function. The text - alignment Settings are altered by calling The SetTextAlign function.

If the lpDx parameter is NULL, the ExtTextOut function USES the default spacing between characters. The character - cell origins and the contents of the array pointed to by the lpDx parameter are given in logical units) of A character - the cell of origin is defined as the upper - left corner of the character cell.

By default, the current position is not informs the or updated By this function. The clear that an application can call the SetTextAlign function have the fMode parameter set to TA_UPDATECP to permit the system to use and update the current position each time the application calls ExtTextOut for a specified device context. When this flag is set, the system ignores the X and Y parameters on subsequent ExtTextOut calls.

Windows CE: Windows CE supports only the following flags for fuOptions parameter.

ETO_CLIPPED

ETO_OPAQUE

QuickInfo
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: the Requires version 1.0 or later.
Header: Declared in wingdi. H.
The Import Library: Use gdi32. Lib.
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related