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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how to open dialog from other dialog box

how to open dialog from other dialog box

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorial
4 Posts 3 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.
  • U Offline
    U Offline
    usman_070
    wrote on last edited by
    #1

    how to open a dialog box from another dialog box using MFC

    N H 2 Replies Last reply
    0
    • U usman_070

      how to open a dialog box from another dialog box using MFC

      N Offline
      N Offline
      Nibu babu thomas
      wrote on last edited by
      #2

      usman_070 wrote:

      how to open a dialog box from another dialog box using MFC

      CDialog aDialog(IDD_DIALOG1);//IDD_DIALOG1 is the resource id of the dialog.
      aDialog.DoModal();//show a modal dialog.

      or

      CDialog aDialog;aDialog.Create(IDD_DIALOG1, this);//IDD_DIALOG1 is the resource id of the dialog
      aDialog.ShowWindow(SW_SHOW);//show modeless dialog


      Nibu thomas A Developer Programming tips[^]  My site[^]

      H 1 Reply Last reply
      0
      • U usman_070

        how to open a dialog box from another dialog box using MFC

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        Can you be more specific m_Dialog2.DoModal or create in dialog1 like this m_Dialog2.Create(IDD_Dialog2,0); then you can use m_Dialog2.ShowWindow(1); or m_Dialog2.ShowWindow(0);_**


        **_

        whitesky


        1 Reply Last reply
        0
        • N Nibu babu thomas

          usman_070 wrote:

          how to open a dialog box from another dialog box using MFC

          CDialog aDialog(IDD_DIALOG1);//IDD_DIALOG1 is the resource id of the dialog.
          aDialog.DoModal();//show a modal dialog.

          or

          CDialog aDialog;aDialog.Create(IDD_DIALOG1, this);//IDD_DIALOG1 is the resource id of the dialog
          aDialog.ShowWindow(SW_SHOW);//show modeless dialog


          Nibu thomas A Developer Programming tips[^]  My site[^]

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          it seems that we are near in seconds:)_**


          **_

          whitesky


          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