Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 875 Bytes

SetTextAlign.md

File metadata and controls

46 lines (32 loc) · 875 Bytes

Home

Function name : SetTextAlign

Group: Font and Text - Library: gdi32


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


Code examples:

Using Font and Text functions

Declaration:

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

FoxPro declaration:

DECLARE INTEGER SetTextAlign IN gdi32;
	INTEGER hdc,;
	INTEGER fMode  

Parameters:

hdc [in] Handle to the device context.

fMode [in] Specifies the text alignment by using a mask of the values in the following list.


Return value:

If the function succeeds, the return value is the previous text-alignment setting.