Reputation: 210352
Does anyone know the difference between those two?
Upvotes: 2
Views: 1539
Reputation: 101569
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.
Upvotes: 4
Reputation: 268215
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.
Upvotes: 2