how to find a window's SW_SHOW/SW_HIDE status

前端 未结 6 1794
野趣味
野趣味 2021-01-01 22:44

I am trying to determine a window control\'s visibility that has been hidden or enabled with CWnd::ShowWindow(). (or ::ShowWindow(hWnd,nCmdShow))

I cannot simply use

6条回答
  •  [愿得一人]
    2021-01-01 22:59

    Use GetWindowPlacement. It fills WINDOWPLACEMENT structure, which has field showCmd.

    showCmd
    Specifies the current show state of the window. This member can be one of the following values.

提交回复
热议问题