ウィンドウリスト中の前(or 次)のウィンドウのハンドル取得
Declare Function GetNextWindow Lib "user32.dll" _
(ByVal hWnd As Long, ByVal wCmd As Long) As Long
Declare Function GetNextWindow Lib "user32.dll" _
(ByVal hWnd As Integer, ByVal wCmd As Integer) As Integer
HWND GetNextWindow(
HWND hWnd,
UINT wCmd
);
引数
hWnd
ウィンドウのハンドルwCmd
動作方法を指定する定数戻り値
正常終了のとき ウィンドウハンドルwCmdの定数
エラーのとき 0
GW_HWNDNEXT = 2 次のウィンドウハンドルを取得
GW_HWNDPREV = 3 前のウィンドウハンドルを取得