I am using the Splash Screen Component. My problem is that I would like the application window to wait to display until the Splash Screen has disappeared (just like VC6's splash screen is drawn before the application is displayed). What currently happens is both my application window and splash screen appear at the same time.

I tried putting a Sleep(4000) before:

m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();

but the application frame is still drawn, even though the contents are not drawn until 4 seconds later.

This is just a basic SDI application built with the AppWizard, and the Splash Screen componenent added.

Thanks in advance for any help.