MFC Dilogs
-
HI How can i use the values in one dilog box in another dilog box. Can we pass values from one dialog box to another? Thanks U get wht u Give
Window Message would be good starting point,look for this http://www.flounder.com/messages.htm[^]
[Vote One Here, Complete my Survey....] Alok Gupta
visit me at http://www.thisisalok.tk "I Think Believe this Will Help" -
HI How can i use the values in one dilog box in another dilog box. Can we pass values from one dialog box to another? Thanks U get wht u Give
basically, you have to pass the value to the new dialog's constructor... so, you have to overload the constructor of your dialog's class, which contains as parameters the values to pass to it... to recover the values after the dialog treated them, you could either read the members into the dialog object (still existing when dialog has closed) if the members are public, or you pass to the costructor some references.
TOXCCT >>> GEII power
[toxcct][VisualCalc] -
HI How can i use the values in one dilog box in another dilog box. Can we pass values from one dialog box to another? Thanks U get wht u Give
make a general class..... letz say CInfoz class,which has got all the information u need to pass to the second dialog..... make an instance of the CInfoz class in both the dialog classes..... then pass this infoz object whenever u open the new dialog .....eg: say from one dialog class we call the second dialog... dialog one { ... ... .. dlg = new CCreamzDlg; dlg->infoz=infoz;//update the information ... ... ... } i hope u find thiz helpful!!!!! cheerz..... :-D "faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13