Click to See Complete Forum and Search --> : Property Page in Wizard does not DDX


tdg
April 27th, 1999, 05:00 PM
I have a one page wizard that does not DDX data. A breapoint in my CPropertyPage derived class's DoDataExchange() shows that the DDX is called upon creation, but not termination. Isn't the Finish button supposed to DDX the data?

I simply create a wizard as so:


CPropertySheet sheet;
CPgProjSettings pg1;

sheet.AddPage(&pg1);
sheet.SetWizardMode();

int retval;
if ((retval=sheet.DoModal()) != ID_WIZFINISH)
{
return FALSE;
}

// validate document data
m_sProjName = pg1.m_sProjName;
m_sDB = pg1.m_sDB;




And the OnSetActive() for my CPropertyPage derived class enables a Finish button.

But this does not work (pg1.m_sProjName, for example, remains NULL "".

How do I DDX the data?

Thanks!