Re: LoadFrame, but hidden
Try
if (pFrame->LoadFrame(IDR_MAINFRAME,
WS_OVERLAPPEDWINDOW | ~WS_VISIBLE, NULL,
NULL))
{
if (bShow)
{ pFrame->ShowWindow(SW_SHOW);
pFrame->UpdateWindow();
}
}
Re: LoadFrame, but hidden
Thanks, but this didn't work either. I made a small new demo-project and found that LoadFrame doesn't show the frame by default. I guess somewhere in the code of the 3rd-party-application they are showing the window.
Re: LoadFrame, but hidden
Sorry to bring this ancient thread again but I have the very same problem and could not figure it out how to get rid of 'blinking' main frame window. Tried PreCreateWindow, ShowWinow(SW_HIDE) but the problem is still there. Any suggestion? Thanks for your time.
Re: LoadFrame, but hidden
Found it. Before LoadFrame() set m_nCmdShow=bShow?SW_SHOW:SW_HIDE;