SetParent

機能
ウィンドウの親子関係を設定
Declare Function SetParent Lib "user32.dll" _
(ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long
Declare Function SetParent Lib "user32.dll" _
(ByVal hWndChild As Integer, ByVal hWndNewParent As Integer) As Integer

HWND SetParent(
HWND hWndChild,
HWND hWndNewParent
);
引数
hWndChild

ウィンドウのハンドル
hWndNewParent
親ウィンドウに設定するウィンドウハンドル
0のときデスクトップが親ウィンドウ
戻り値
正常終了のとき  直前の親ウィンドウハンドル
エラーのとき  0