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. MFC Dilogs

MFC Dilogs

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

    HI How can i use the values in one dilog box in another dilog box. Can we pass values from one dialog box to another? Thanks U get wht u Give

    T T N 3 Replies Last reply
    0
    • C charu123

      HI How can i use the values in one dilog box in another dilog box. Can we pass values from one dialog box to another? Thanks U get wht u Give

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      Window Message would be good starting point,look for this http://www.flounder.com/messages.htm[^]


      [Vote One Here, Complete my Survey....] Alok Gupta
      visit me at http://www.thisisalok.tk          "I Think Believe this Will Help"

      1 Reply Last reply
      0
      • C charu123

        HI How can i use the values in one dilog box in another dilog box. Can we pass values from one dialog box to another? Thanks U get wht u Give

        T Offline
        T Offline
        toxcct
        wrote on last edited by
        #3

        basically, you have to pass the value to the new dialog's constructor... so, you have to overload the constructor of your dialog's class, which contains as parameters the values to pass to it... to recover the values after the dialog treated them, you could either read the members into the dialog object (still existing when dialog has closed) if the members are public, or you pass to the costructor some references.


        TOXCCT >>> GEII power
        [toxcct][VisualCalc]

        1 Reply Last reply
        0
        • C charu123

          HI How can i use the values in one dilog box in another dilog box. Can we pass values from one dialog box to another? Thanks U get wht u Give

          N Offline
          N Offline
          namaskaaram
          wrote on last edited by
          #4

          make a general class..... letz say CInfoz class,which has got all the information u need to pass to the second dialog..... make an instance of the CInfoz class in both the dialog classes..... then pass this infoz object whenever u open the new dialog .....eg: say from one dialog class we call the second dialog... dialog one { ... ... .. dlg = new CCreamzDlg; dlg->infoz=infoz;//update the information ... ... ... } i hope u find thiz helpful!!!!! cheerz..... :-D "faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13

          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