Data from one dialog box into another dialog box
-
Hi, I created two dialog boxes.I want to get data from a control in one dialog box into another dialog box. Can anyone say how to get it. Thank you.
-
-
Hi, I created two dialog boxes.I want to get data from a control in one dialog box into another dialog box. Can anyone say how to get it. Thank you.
Suppose you are creating these dialog in some class say a dialog class CMainDlg Class CMainDlg:Public CDialog { private: Dlg1* pDlg1; Dlg2* pDLg2; ...... } Then in Class Dlg1 expose a function to Get the other dialog control's data and in class Dlg to set theat data for eg Class Dlg1:public CDilaog { public CString GetDataFrmControl(); // supposing control's data type is of type CString } Class Dlg2:public CDilaog { public void SetDataToControl( CString& Data ); // supposing control's data type is of type CString } /////////////////////////// CMainDLg::OnInitDialog { PDlg1 = new Dlg1; pDlg2 = new Dlg2; pDLg1->Create(..) pDlg2->Create(..) // pass the value from one dialog to another where ever needed pDlg2->SetDataToControl( pDLg1->GetDataFrmControl()) } Rinu Raj
-
-
HEY !!!!! :mad: you have a problem with your signature, don't you ? :suss:
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
-
Hi, I created two dialog boxes.I want to get data from a control in one dialog box into another dialog box. Can anyone say how to get it. Thank you.
What is the relationship between the two dialogs? Are they siblings? Does one "own" the other? Are they both modal?
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
-
Why not you delete this?
--[:jig:]-- [My Current Status] Link2006 wrote:Let's take it outside of CP Jeremy : Please don't.I would love to see this.I'm making the popcorn already.
-
Hi, I created two dialog boxes.I want to get data from a control in one dialog box into another dialog box. Can anyone say how to get it. Thank you.
///////if your main class is CMainDlg In another dialog you can use
#include "MainDlg.h" CMainDlg *m_Main=GetParent(); m_Main->Yourfunction();
_**
**_
WhiteSky
-
You can modify your message.
_**
**_
WhiteSky
-
What is the relationship between the two dialogs? Are they siblings? Does one "own" the other? Are they both modal?
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
The two dialog boxes are modal dialog boxes