tags:

views:

84

answers:

0

I'm having a problam with an MFC app. I open a modal dialog, press F1, HTML Help pops up with the appropriate context sensative help. I close the Help Window and can then press any shortcut key (such as Ctrl+O for open) and the app will open the file open dialog, even though the modal dialog is still visible and should have the keybord focus.

I'm using the new MFC feature pack.

This behavior can be duplicated with a stock MFC application. Using the MFC Application Wizard, build a SDI app with Context Sensatvie Help. Leave all other options at the default. Build and run the app. Open the Help About dialog, Press F1, Close the Help Window, press Ctrl+O, you'll see this issue.

If after closing the Help Window you click the app window or dialog box with the mouse the focus is set properly and pressing shortcut keys does nothing.

This appears to be a defect in the new MFC featrue pack classes. Does anyone have an idea as to how I can correct this behavior?

Thanks.