ウィンドウを破棄する
Declare Function DestroyWindow Lib "user32.dll" _
(ByVal hWnd as Long) as Long
Declare Function DestroyWindow Lib "user32.dll" _
(ByVal hWnd as Integer) as Integer
BOOL DestroyWindow(
HWND hWnd
);
引数
hWnd
破棄するウィンドウのハンドル戻り値
正常終了のとき 0以外備考
エラーのとき 0
この関数は、CreateWindowEx()関数で作成したウィンドウを破棄する。
その後、WM_DESTROYとWM_NCDESTROYをウィンドウに送る。