13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

GetTextAligncase TA CENTERGetT extCharacterExtraSyntaxint GetTextCharacterExtra(hDC)function GetTextCharacterExtra(DC: HDC): Integer;This function retrieves the current intercharacter spacing. Theintercharacter spacing defines the extra space (in logical units) that theTextOut or ExtTextOut functions add to each character as they write aline. The spacing is used to expand lines of text.If the current mapping mode is not MM_TEXT, theGetTextCharacterExtra function transforms and rounds the result to thenearest unit.Parameters hDC HOC Identifies the device context.Return valueThe return value specifies the current intercharacter spacing.GetTextColorSyntaxDWORD GetTextColor(hDC)function GetTextColor(DC: HDC): TColorRef;This function retrieves the current text color. The text color defines theforeground color of characters drawn by using the TextOut or ExtTextOutfunctions.Parameters hDC HOC Identifies the device context.Return valueThe return value specifies the current text color as an RGB color value.GetT extExtentSyntaxDWORD GetTextExtent(hDC,lpString, nCount)function GetTextExtent(DC: HDC; Str: PChar; Count: Integer): Longint;This function computes the width and height of the line of text pointed toby the IpString parameter. The GetTextExtent function uses the currentlyselected font to compute the dimensions of the string. The width and354Software development kit

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!