
Question on Dialog based app startup
In a dialog based application, the dialog is the app window.
So what you would need is a SplashWindow. They way I have done this before
is to create a modal dialog box and display it at the begining of
InitInstance. And have my main dialog destroy the splash screen once it is
done with the OnInitDialog.
Unless you want your dialog box to be displayed before it is filled, which
in that case you can leave your OnInitDialog empty and setup a timer (100
ms) before you return from OnInitDialog and when the timer hits then call
your fill routine.
Ali
Quote:
> Hi,
> I have dialog based app that fills a list control with data on startup.
I'd
> like the app window to display before the process of filling the list box
> begins. Currently, I start the process in oninitdialog which causes the
> process to complete before the app window is displayed. Where should I
kick
> off my list control code so it does not start until the app window is
> displayed?
> Thanks for the help.
> Tom