How does one hide a win32 app window?

后端 未结 5 1512
不知归路
不知归路 2020-12-19 09:48

I want to run the app in silent mode by passing in a parameter, otherwise I will show the window.

5条回答
  •  悲哀的现实
    2020-12-19 10:17

    If you have an MFC CWnd based display then CWnd::ShowWindow(SW_HIDE);
    If you are using just win32 then ShowWindow(hWnd, SW_HIDE);

    Other things people do depending on your goals

    • make the window very small
    • move the window off the visible desktop area

提交回复
热议问题