Where to place progress dialog call

Hi,


I am working on a SDI application that uses a static splitter window devided into 2 panes.
(The first pane implements a tree view and the second a list view.)
I want to calculate a table (Array of doubles) stored in the document when the application
starts up.
Since those calculations can take a few seconds I want to visualize it, using a progress bar
in a modal dialog that poppes up and disappears when the table is processed.
I want to know where I can best place the call to show the dialog that starts the calculation
proces.
Any help would be greatly appreciated.

                              Ronny
bs161900Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

chensuCommented:
It depends on where you can start the calculation. You may put it in your overridden CWinApp::InitInstance or CFrameWnd::OnCreate or CView::OnCreate.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bs161900Author Commented:
I need the table to process the items in the list view (second pane), so the best place to call the dialog would be in CMyListView::OnCreate.
Could you confirm that ?
0
chensuCommented:
Yes.
0
bs161900Author Commented:
Thank you very much for your answer.
Maybe we meet again in the future.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.