Click to See Complete Forum and Search --> : Pointer to all opened dialogs.


nagi
May 18th, 1999, 10:21 PM
Dear friends,

I am working on a project which has dialog based interface. I have one main (Modal ) dialog & several Modeless Dialogs.

I am creating all these modeless dialogs in "OnInitDialog" function of main dialog. I make them visible as soon as user click a button
related to that dialog.

Now the problem as when user click "End Task" button in one modeless dialog. I should "HIDE" another currently activated dialog.
This "End Task" Button is on a modeless dialog (which will be visible throughout the execution of my project)
which was also created in main dialogs "OnInitDialog" function.

Can anyone tell me how can get a pointer to all the dialogs that are being used.

Thanks in advance.

Jaeyeon Lee
May 18th, 1999, 11:37 PM
1. Reserve the pointers to every child modeless dialog boxes at the parent dialog box.
2. Reserve the pointer to the parent dialog box at each child modeless dialog boxes.
3. When the child modeless dialog box is closed, make the child modeless dialog boxes send some message to the parent dialog box(or call some method of the parent) with its own pointer.
4. Then you can delete the child from the reserved child list.