SetWindowText

機能
ウィンドウのキャプションを設定
Declare Function SetWiondowText Lib "user32.dll" Alias "SetWindowTextA" _
(ByVal hWnd As Long, ByVal lpString As String) As Long
Declare Function SetWiondowText Lib "user32.dll" Alias "SetWindowTextA" _
(ByVal hWnd As Integer, ByVal lpString As String) As Integer

BOOL SetWindowText(
HWND hWnd,
LPCTSTR lpString
);
引数
hWnd

ウィンドウのハンドル
lpString
設定する文字列
戻り値
正常終了のとき  0以外
エラーのとき  0
備考
フォームなどのウィンドウのほかにテキストボックスなども可。