GetNextWindow

機能
ウィンドウリスト中の前(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
動作方法を指定する定数
戻り値
正常終了のとき  ウィンドウハンドル
エラーのとき  0
wCmdの定数

GW_HWNDNEXT = 2                  次のウィンドウハンドルを取得
GW_HWNDPREV = 3                  前のウィンドウハンドルを取得