Dialog Windows Hidden Problem :: MFC
-
Hi. I just discovered an interesting properties of formview in MFC. Consider a formview that displays multiple dialog boxes as windows. The program displays the dialog box windows via ShowWindow(SW_SHOW). However, for some reason the framework will suddenly hide the dialog box windows if the user presses a control key, i.e. ESC, ENTER, etc. Thus, when the user presses a control key, the framework hides all dialog bow windows and all you see is controls that are embedded in the formview via Resource Editor. I would like to know is it possible to circumvent this property of MFC's formview? Thanks, Kuphryn
-
Hi. I just discovered an interesting properties of formview in MFC. Consider a formview that displays multiple dialog boxes as windows. The program displays the dialog box windows via ShowWindow(SW_SHOW). However, for some reason the framework will suddenly hide the dialog box windows if the user presses a control key, i.e. ESC, ENTER, etc. Thus, when the user presses a control key, the framework hides all dialog bow windows and all you see is controls that are embedded in the formview via Resource Editor. I would like to know is it possible to circumvent this property of MFC's formview? Thanks, Kuphryn
-
Hi maybe you just have to overried OnOK() and OnCancel() of that dialog box classes. cause when you press ENTER OnOK() will be called and the window destroys itself. the same thing happens for ESC and OnCancel()