GetCharWidth32

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