0

I am opening a CDialog(CAxDialogImpl) using m_nRet = DoModal();

On this dialog I have an options button. When I click on this options button, I need to close this existing dialog and open another dialog (my options dialog). In order to close the existing dialog, I first call EndDialog(m_nRet) and then call DoModal() again to open my options dialog.

I am able to successfully close and reopen another dialog. However, when I try to close this new options dialog, my IE page in the background refreshes with a message:

A problem with this webpage caused Internet Explorer to close and reopen the tab.

I am new to this technology and would appreciate your help. Thank you!

4

1 回答 1

0

单击选项按钮时,您将需要设置成员变量(例如:m_bInvokeOptionsDlg)或唯一的返回值并退出对话框。

然后调用函数应检查该值并调用选项对话框。一旦调用返回,您可以循环返回并再次打开初始对话框。

另一种选择是在单击选项按钮时直接调用选项对话框,但随后两个对话框都将可见。

于 2014-04-11T16:01:55.577 回答