Parent and chield Dialog
-
Hi All I have two dialog A and B. A dailog is running first and B is running after click button on dialog A. Now problem is that when dialog B is running and again click on button A,then one more dialog B is open. Also i want to set option if Dialog B is Open Then A Dialog cann't be close.SO How can i set these option... Plz help me
-
Hi All I have two dialog A and B. A dailog is running first and B is running after click button on dialog A. Now problem is that when dialog B is running and again click on button A,then one more dialog B is open. Also i want to set option if Dialog B is Open Then A Dialog cann't be close.SO How can i set these option... Plz help me
Use modal dialogs, from your query it appears that you are using modeless dialogs. Also you can use a flag variable to check if some other dialog is open. if that flag is true don't call the close for dialog A
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
-
Hi All I have two dialog A and B. A dailog is running first and B is running after click button on dialog A. Now problem is that when dialog B is running and again click on button A,then one more dialog B is open. Also i want to set option if Dialog B is Open Then A Dialog cann't be close.SO How can i set these option... Plz help me
you have to create B telling it that A is its parent (pointer parameter to the constructor) and open it using DoModal()
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
-
Hi All I have two dialog A and B. A dailog is running first and B is running after click button on dialog A. Now problem is that when dialog B is running and again click on button A,then one more dialog B is open. Also i want to set option if Dialog B is Open Then A Dialog cann't be close.SO How can i set these option... Plz help me
make one member variable that store the pointer of cerated dialog B which is initialy NULL and create the dialog when its null if its not null than dont go for create it put same check in OnClose