Hmm...i dont quite understand what you mean?
Could You guide me on how steps to link of 1 form to another.As im new to this.
The software is in Embedded Visual C++ 4.0.
Actually i have :
1st Dialog - IDD_PP_WRITER
2nd Dialog - IDDD_PP_AUTHOR (So, i double click on the form which lead me to create a new class for the form)
__________________________
Let's say the Class Test is created When i double click the form.
Below is the code for the 2nd form:
//////////////////////////
// Test dialog
Test::Test(CWnd* pParent /*=NULL*/)
: CDialog(Test::IDD, pParent)
{
//{{AFX_DATA_INIT(Test)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void Test::DoDataExchange(CData
{
CDialog::DoDataExchange(pD
//{{AFX_DATA_MAP(Test)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(Test, CDialog)
//{{AFX_MSG_MAP(Test)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
//////////////////////////
// Test message handlers
__________________________
Below is the code for the 1st form:
//////////////////////////
// CAuthorPage property page
IMPLEMENT_DYNCREATE(CAutho
CAuthorPage::CAuthorPage()
{
//{{AFX_DATA_INIT(CAuthorP
m_BooAvail = FALSE;
m_StrCategory = _T("");
m_StrName = _T("");
m_nMID = 0;
m_DubPrice = 0.0;
//}}AFX_DATA_INIT
}
CAuthorPage::~CAuthorPage(
{
}
void CAuthorPage::DoDataExchang
{
CPropertyPage::DoDataExcha
//{{AFX_DATA_MAP(CAuthorPa
DDX_Text(pDX, IDC_AVAIL_EDIT, m_BooAvail);
DDX_Text(pDX, IDC_CATEGORY_EDIT, m_StrCategory);
DDX_Text(pDX, IDC_ITEM_EDIT, m_StrName);
DDX_Text(pDX, IDC_MENUNO_EDIT, m_nMID);
DDX_Text(pDX, IDC_PRICE_EDIT, m_DubPrice);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAuthorP
//{{AFX_MSG_MAP(CAuthorPag
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
//////////////////////////
// CAuthorPage message handlers
__________________________
Could you tell me where should i modify the above codes? or is there any steps to be undertaken ?
Please Help me.
Main Topics
Browse All Topics





by: SteveGTRPosted on 2005-08-29 at 12:39:05ID: 14778650
When you create your 2nd Dialog form you can pass the handle of the first form in the constructor:
CDialog dlg2(IDD_DIALOG2, dlg1);
IDD_DIALOG2 would be the resource ID of the 2nd dialog.
Good Luck,
Steve