View handling or hiding.
-
I have a view based SDI application. It monitors other process. If no problems are detected I would like it to be invisible to the user. I do not want it to show on the task bar, nor should someone be able to Alt-Tab to it. How do I hide the frame and the view?
-
I have a view based SDI application. It monitors other process. If no problems are detected I would like it to be invisible to the user. I do not want it to show on the task bar, nor should someone be able to Alt-Tab to it. How do I hide the frame and the view?
Towards the end of your application InitInstance method, the following lines exit m_pMainWnd->ShowWindow(SW_SHOW); m_pMainWnd->UpdateWindow(); Changing the show (SW_SHOW) to hide (SW_HIDE) or something similar will prevent the window from showing. It will actually initial show and then hide. If you wish to prevent this too, you may have to take care of the actual creation functions in the mainframe class.