DrawRotatedTextBoxExA
文字, 頁面版面配置
描述
結尾的 A 表示 ANSI(char)DLL 進入點;ActiveX/COM 介面只提供 Unicode 形式。行為與 DrawRotatedTextBoxEx 完全相同,字串參數依目前 SetAnsiMode 的字碼頁解讀
類似 DrawRotatedTextBoxEx 函式,但可讓文字框顯示框線
語法
Delphi
Function DLDrawRotatedTextBoxExA(InstanceID: Integer; Left, Top, Width, Height, Angle: Double; Text: PAnsiChar; Options, Border, Radius, DrawOptions: Integer): Integer;
DLL
int DLDrawRotatedTextBoxExA(int InstanceID, double Left, double Top, double Width, double Height, double Angle, const char * Text, int Options, int Border, int Radius, int DrawOptions);
參數
Left
文字框左上角的水平座標
Top
文字框左上角的垂直座標
Width
The width of the box
Height
The height of the box
文字框繞左上角旋轉的角度,以度為單位、逆時針量測
Angle
Text
要畫到頁面上的文字
0 = 垂直置中對齊
1 = 垂直向上對齊
2 = 垂直向下對齊
3 = 垂直置中對齊,不自動換行
4 = 垂直向上對齊,不自動換行
5 = 垂直向下對齊,不自動換行
Options
Border
0 = No Border
1 = Border
2 = 圓角框線
圓角弧的半徑
Radius
DrawOptions
0 = Outline
1 = Fill
2 = Fill and outline
傳回值
| 0 | Options 參數超出範圍,或 Width 參數小到放不下任何文字 |
|---|---|
| Non-zero | 實際繪製的文字行數 int Options, int Border, int Radius, int DrawOptions); |