指定の矩形の範囲内でテキストを表示する
Declare Function ExtTextOut Lib "gdi32.dll" Alias "ExtTextOutA" _
(ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal fnOptions As Long, _
lprc As RECT, ByVal lpString As String, ByVal cbCount As Long, lpDx As Any) As Long
Declare Function ExtTextOut Lib "gdi32.dll" Alias "ExtTextOutA" _
(ByVal hdc As Integer, ByVal x As Integer, ByVal y As Integer, ByVal fnOptions As Integer, _
lprc As RECT, ByVal lpString As String, ByVal cbCount As Integer, lpDx As Integer) As Integer
BOOL ExtTextOut(
HDC hdc,
int X,
int Y,
UINT fuOptions,
CONST RECT *lprc,
LPCTSTR lpString,
UINT cbCount,
CONST INT *lpDx
);
引数
hdc
デバイスコンテキストのハンドルx
出力位置のx座標y
同、y座標fnOptions
動作方法を指定する定数の組み合わせlprc
矩形領域を指定するRECT構造体lpString
出力するテキストcbCount
同、バイト数lpDx
文字間隔を指定する長整数配列(デフォルト値を使うとき ByVal 0&)戻り値
正常終了のとき 0以外fnOptionsの定数
エラーのとき 0
ETO_CLIPPED = 4 lprcで指定した矩形領域をクリッピングし
その範囲内のみにテキストを描画
ETO_GLYPH_INDEX = &H10 lpStringはGetCharacterPlacement()関数で戻る配列を指す
ETO_OPAQUE = 2 文字のバックグラウンドを塗りつぶす
ETO_RTLREADING = &H80 文字を右から左に描画
(アラビア語、ヘブライ語にのみ対応)