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. dialog mfc app

dialog mfc app

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
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

    i have created a dialog windows application using the app wizard. it has a few other sub dialogs which are created from code behind file menu bar. Im looking for a method to get access the main dialog windows data from the other sub dialogs. im sure their is any easy way to get a pointer to the data ?

    H M 2 Replies Last reply
    0
    • I Irish_GUI

      i have created a dialog windows application using the app wizard. it has a few other sub dialogs which are created from code behind file menu bar. Im looking for a method to get access the main dialog windows data from the other sub dialogs. im sure their is any easy way to get a pointer to the data ?

      M Offline
      M Offline
      Maximilien
      wrote on last edited by
      #2

      if the data is in the main dialog class, you need to pass a pointer of that dialog to the sub-dialogs.


      Maximilien Lincourt Your Head A Splode - Strong Bad

      1 Reply Last reply
      0
      • I Irish_GUI

        i have created a dialog windows application using the app wizard. it has a few other sub dialogs which are created from code behind file menu bar. Im looking for a method to get access the main dialog windows data from the other sub dialogs. im sure their is any easy way to get a pointer to the data ?

        H Offline
        H Offline
        Hadi Rezaee
        wrote on last edited by
        #3

        Hello, GetParent() returns the main dialog pointer. CWnd* GetParent( ) const; Regards, Hadi

        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