windows_programming_notes.nbk: Home | Index | Next Page: SetTextColor | Previous Page: SetScrollRange


 SetTextAlign

The SetTextAlign function sets the text-alignment flags for the specified device context.

UINT SetTextAlign(
  HDC hdc,     // handle to DC
  UINT fMode   // text-alignment option
);

Parameters

When the current font has a vertical default base line, as with Kanji, the following values must be used instead of TA_BASELINE and TA_CENTER. Value Meaning VTA_BASELINE The reference point will be on the base line of the text. VTA_CENTER The reference point will be aligned vertically with the center of the bounding rectangle.

The default values are TA_LEFT, TA_TOP, and TA_NOUPDATECP.

Return Values

Remarks

Requirements

See Also


windows_programming_notes.nbk: Home | Index | Next Page: SetTextColor | Previous Page: SetScrollRange


Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time