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?

[Webinar] Streamline your web hosting managementRegister Today

x
 
chensuConnect With a Mentor Commented:
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
 
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
All Courses

From novice to tech pro — start learning today.