Overriding MFC's CFileDialog::OnOK...
Posted on 1998-03-08
I have created an exteded version of the CFileDialog by adding a template to the bottom of it. I now want to override the OnOK function for this dialog so that I can do some validation code in my program. I find that I cannot step into or hit the overridden OnOK function for some unknown reason. My definition of this funciton in the derived CFileDialog class is:
virtual void OnOK();
The implementaion is:
// do something
Can anyone tell me how to properly overide the OnOK button for this dervied class ?