Posted on 2000-02-15
Hi, althought this is a new question, it does have its roots in my previous question. Now I have decided to define a struct (myStruct) as public in my dialog box class (CmyDlg). I have a button on the dialog box to open a property sheet with four property pages on it. I want to manipulate the data in the property sheet and return the altered struct back to my dialog box class. So far I have this struct...
class CMyDlg : public CDialog
I then added a button with this function...
myStruct.test = 1;
int propSheetReturn = propSheet.DoModal();
int j = myStruct.test;
which obviously sets the data in the structure, opens the property sheet, and when the sheet is closed, I check my data to see if it has changed. And I want it to have changed. I want a function in the property page to change the test variable to 2. So the dialog box with its own class opens the property sheet with its own class which opens up the four pages each with their own class. A function I call in CPropertyPage1 must change the variable to 2.
Well I hope that I explained that clearly. I have tried everything and it all runs but does not pass the data along... help!!!