SetCaretPos

機能
指定された座標にキャレットを移動する
Declare Function SetCaretPos Lib "user32.dll"  _
(ByVal x As Long, ByVal y As Long) As Long
Declare Function SetCaretPos Lib "user32.dll"  _
(ByVal x As Integer, ByVal y As Integer) As Integer

BOOL SetCaretPos(
int X,
int Y
);
引数
x

x座標
y
y座標
戻り値
正常終了のとき                0以外
エラーのとき                  0
備考
キャレットが非表示のときにもキャレットを移動できる
拡張エラー情報を取得するには、GetLastError()関数を使う