
Starting Doc/View app with hidden window
I am trying to alter my app so that it loads a specific file on startup
(which I have done) and does not have the open/save/save as menu items.
I want to make this app run as a button on the task bar tray (which I
can do) but, how do I set up the app so that it does not display any
windows on the screen? I can call HideApplication() at the beginning of
CWinApp::InitInstance(), but this causes an assertion failure. If I call
it at the end of the method, then the window flashes up on the screen,
causing an annoying flicker.
How do I alter my app classes so that all the windows are initially
created hidden? I have tried setting m_nCmdShow to hidden and altering
the cs object in CMainFrame::PreCreateWindow() but none of this seems to
work.
Thanks in advance,
--
Jamie Walker
http://www.*-*-*.com/