user541686
user541686

Reputation: 210352

CloseWindow() vs ShowWindow(hWnd, SW_MINIMIZE)

Does anyone know the difference between those two?

Upvotes: 2

Views: 1539

Answers (2)

Anders
Anders

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

Dan Abramov
Dan Abramov

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

Related Questions