Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. True modal dialog?

True modal dialog?

Scheduled Pinned Locked Moved C / C++ / MFC
c++questioncsharplinuxhelp
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bash
    wrote on last edited by
    #1

    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

    B 1 Reply Last reply
    0
    • B 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

      B Offline
      B Offline
      Bash
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups