开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜