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. MFC SDI App

MFC SDI App

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

    Hi, i have a SDI App(generated with app wizard) with a file menu bar that envokes another dialog class.. my prob is trying to get a pointer from the dialog class that is envoked from the menu bar back to the original main dialog class created by the app wizard. that way i can access the main dialog windows data Thanks

    L R 2 Replies Last reply
    0
    • I Irish_GUI

      Hi, i have a SDI App(generated with app wizard) with a file menu bar that envokes another dialog class.. my prob is trying to get a pointer from the dialog class that is envoked from the menu bar back to the original main dialog class created by the app wizard. that way i can access the main dialog windows data Thanks

      L Offline
      L Offline
      l a u r e n
      wrote on last edited by
      #2

      try this:

      CMyMainDlg::ShowOtherDialog()
      {
      COtherDlg myOtherDlg;
      myOtherDlg.DoModal();

      my_var = myOtherDlg.some_variable;
      }

      type of thing :)


      "there is no spoon"
      biz stuff   about me

      1 Reply Last reply
      0
      • I Irish_GUI

        Hi, i have a SDI App(generated with app wizard) with a file menu bar that envokes another dialog class.. my prob is trying to get a pointer from the dialog class that is envoked from the menu bar back to the original main dialog class created by the app wizard. that way i can access the main dialog windows data Thanks

        R Offline
        R Offline
        Robert A T Kaldy
        wrote on last edited by
        #3

        If I understand right, you should simply declare the dialog class as a member of CMainFrame. In menu item handler you call only DoModal().

        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