|
-
July 16th, 2010, 03:21 AM
#1
Simple doubt about modal dialogs (they block caller they do not?)
Scenario:
Class A -> need to perform about 30 cycles. Every one of these cycles should be shown at the user as soon as it completes in a window with a graph (don't mind how this graph gets done).
Class B -> is the CDialogDlg class where the graph is done. This should be a modal dialog, so I load it with
Code:
CDialogDlg m_dlg(this);
m_dlg.DoModal();
The problem is that the window with the graph (Class B) should have a button "NEXT CYCLE".
I don't like the idea of the window closing, letting class A doing its job, and then the window reappears with the next graph.
I simply don't like the idea of closing and re-opening the window. I'd prefer if the "NEXT CYCLE" button press put the user in a "Wait for completion" message or something like that without closing the window.
Any idea? Do you got anything of what I've written till now?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|