MoveWindow

UWSCのACW関数で同じ操作ができます。

構文(VBA)
Declare Function MoveWindow Lib "user32" Alias "MoveWindow" (ByVal hwnd As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal bRepaint As Long) As Long
構文(UWSC)
DEF_DLL MoveWindow(hwnd, long, long, long, long, long): long: user32
引数
戻り値

プログラム実行例

ウィンドウのサイズ位置・サイズを設定

DEF_DLL MoveWindow(hwnd, long, long, long, long, long): long: user32

DIM ID = EXEC("mspaint")

MoveWindow(IDTOHND(ID), 0, 50, 800, 400, FALSE)
  1. user32.MoveWindow
  2. EXEC