Uli Hecker
August 12th, 1999, 04:10 AM
Hello, I've got a problem with the CPropertySheet/CPropertyPage classes:
I developed a program that can dynamically add CPropertyPages to a CPropertySheet;
my problem now is the following:
- if i activate a page for the first time (directly after starting the program), and change something on that page, everything works fine
- if i activate a page for the first time (...), change nothing, switch to the next page and change that one (i call SetModified() for each
change), the OK and ApplyNow-Buttons are enabled, but nothing happens when i press them. Even OnOK() oder OnApply() is not
called!!
Each page resides in a DLL and is added via a c-function like that:
// Global page
CMyPropertyPage* MyPage = new CMyPropertyPage();
// Adding function
void CFuncAddPage ( CPropertySheet* pSheet )
{
pSheet->AddPage ( MyPage );
}
So what could that be?
PS: My environment ist Win95/NT4 and VC++6 with SP3
I developed a program that can dynamically add CPropertyPages to a CPropertySheet;
my problem now is the following:
- if i activate a page for the first time (directly after starting the program), and change something on that page, everything works fine
- if i activate a page for the first time (...), change nothing, switch to the next page and change that one (i call SetModified() for each
change), the OK and ApplyNow-Buttons are enabled, but nothing happens when i press them. Even OnOK() oder OnApply() is not
called!!
Each page resides in a DLL and is added via a c-function like that:
// Global page
CMyPropertyPage* MyPage = new CMyPropertyPage();
// Adding function
void CFuncAddPage ( CPropertySheet* pSheet )
{
pSheet->AddPage ( MyPage );
}
So what could that be?
PS: My environment ist Win95/NT4 and VC++6 with SP3