I have an app that uses a property sheet, I want the "Apply" button to always be enabled. It's possible to enable it on the fly, in an event handler for instance, by calling the function CPropertyPage::SetModified(BOOL flag). But when I tried to just call SetModified from the OnInitDialog() function of one my property pages, so that the whole time the property sheet was displayed the apply button would be enabled, it doesn't work.
I suspect that function only works once the dialog has been displayed, so I can't call from OnInitDialog(). Does anyone out there know a way to do what I'm trying to do?