CloseWindow() vs ShowWindow(hWnd, SW_MINIMIZE)
Does anyone know the difference b开发者_JS百科etween those two?
CloseWindow() calls ShowWindow() with SW_SHOWMINIMIZED if the window is not already minimized.
Like IsIconic() and IsZoomed(), CloseWindow() is one of the old school window manipulation functions.
From MSDN:
CloseWindow
Minimizes (but does not destroy) the specified window.ShowWindow (SW_MINIMIZE)
Minimizes the specified window and activates the next top-level window in the Z order.
My guess is CloseWindow doesn't activate next top-level window.
精彩评论