My dialog box derives from CPropertyPage
.
I've overridden OnOK()
in order to run some custom checks. However, it seems that Dynamic Data Exchange (DDX) has already completed and my class variables have already been updated when my handler gets called.
I thought DDX happens when I call CPropertyPage::OnOK()
, which I'm doing at the end of my handler.
In addition, if my code decides the dialog box should not close and returns without calling CPropertyPage::OkOK()
, the dialog still closes!
How can I run my custom checks before DDX has updated my class variables?
P.S. It doesn't appear that the MFC source code is installed by default any longer, and none of the install options mention the MFC source code. After Googling, I found a couple of options mentioned. I checked them and I still don't have the MFC source code.
DoDataExchange
. Is that what you're looking for? – 1201ProgramAlarmOnOK()
. – Jonathan Wood