フォントの文字幅を取得する
Declare Function GetCharWidth32 Lib "gdi32.dll" alias "GetCharWidthA" _hdc
(ByVal hdc As Long, ByVal iFirstChar As Long, ByVal iLastChar As Long, _
lpBuffer As Any) As Long
デバイスコンテキストのハンドルiFirstChar
最初の文字のASCII値iLastChar
最後の文字のASCII値lpBuffer
(戻り値)文字幅を受け取る長整数配列戻り値
正常終了のとき 0以外備考
エラーのとき 0
この関数はiFirstCharとiLastChardとで指定する連続した文字を対象として、その文字幅を取得する。