True modal dialog?
-
Hi, I'm in developing a large project with Visual C++ .NET. I have several SDI applications and a set of dialogs shared between SDI application. I want to create a MFC Extension Dll that can be included most common dialogs of my project. I've successfully created a .dll with test dialog but I've confused about invoking the dialog from SDI application. The problem is that invoked dialog is not modal for SDI application (I can switch between SDI application and invoked dialog). In additional, the invoked dialog has an button on taskbar. See picture dialog.gif[^] My question is: How to invoke a "true" modal dialog from MFC Extension Dll ? What settings must have this dialog to be invoked as "true" modal dialog (currently, the settings are default) ? Yours sincerely, Alex Bash
-
Hi, I'm in developing a large project with Visual C++ .NET. I have several SDI applications and a set of dialogs shared between SDI application. I want to create a MFC Extension Dll that can be included most common dialogs of my project. I've successfully created a .dll with test dialog but I've confused about invoking the dialog from SDI application. The problem is that invoked dialog is not modal for SDI application (I can switch between SDI application and invoked dialog). In additional, the invoked dialog has an button on taskbar. See picture dialog.gif[^] My question is: How to invoke a "true" modal dialog from MFC Extension Dll ? What settings must have this dialog to be invoked as "true" modal dialog (currently, the settings are default) ? Yours sincerely, Alex Bash
I need to explain what I do: Step 1. I made MFC Extension DLL with Wizard Step 2. I added to Extension DLL a new class CMyDialog derived from CDialog Step 3. I added to Extension DLL a new GENERIC-class CExportData to export data & functions Step 4: I added to CExportData function CallMyDialog(): void CExportData::CallMyDialog() { CMyDialog md; md.DoModal(); }; Step 5: I made a call from SDI-application: CExportData ex; ex.CallMyDialog(); Step 6: I got the CMyDialog, but CMyDialog is not modal. I can switch between SDI application and CMyDialog, What's wrong? Yours sincerely, Alex Bash