Starting an MFC-based SDI app with window hidden. How?
-
I have an SDI app in MFC that, when started, I want the window to remain hidden. Currently I am calling
m_pMainWnd->ShowWindow(SW_HIDE);
from theMySDIApp::InitInstance()
function. What currently happens is, the window is displayed for a split second, then goes away as I'd like it to (from there everything is working correctly). How do I avoid this flash of the window? Is there something I need to do before the InitInstance is called, and if so, how do I do that? Thanks!!! ~Steve -
I have an SDI app in MFC that, when started, I want the window to remain hidden. Currently I am calling
m_pMainWnd->ShowWindow(SW_HIDE);
from theMySDIApp::InitInstance()
function. What currently happens is, the window is displayed for a split second, then goes away as I'd like it to (from there everything is working correctly). How do I avoid this flash of the window? Is there something I need to do before the InitInstance is called, and if so, how do I do that? Thanks!!! ~SteveSee the VC FAQ 7.6 I have a dialog-based app and want the dialog hidden on startup. How do I do this?[^] (the solution there should work for your app too) --Mike-- THERE IS NO THERE IS NO BUT THERE IS MAGIC PIXIE DUST BUSINESS GENIE CODE PROJECT :bob: Homepage | RightClick-Encrypt | 1ClickPicGrabber
-
See the VC FAQ 7.6 I have a dialog-based app and want the dialog hidden on startup. How do I do this?[^] (the solution there should work for your app too) --Mike-- THERE IS NO THERE IS NO BUT THERE IS MAGIC PIXIE DUST BUSINESS GENIE CODE PROJECT :bob: Homepage | RightClick-Encrypt | 1ClickPicGrabber
Perfect! Thanks!!! ~Steve