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. Dialogs data change

Dialogs data change

Scheduled Pinned Locked Moved C / C++ / MFC
windows-adminquestion
5 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.
  • S Offline
    S Offline
    smack_2k2
    wrote on last edited by
    #1

    I have some multiple dialogs and i have to exchange data form one to another. One solution that i think of is to save the data in the registry. Is there another way to do it ? Thanks

    D M T 3 Replies Last reply
    0
    • S smack_2k2

      I have some multiple dialogs and i have to exchange data form one to another. One solution that i think of is to save the data in the registry. Is there another way to do it ? Thanks

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      You could use a property sheet with each dialog being a property page. Or, you could derive each dialog from a base class and put the shared data in the base class.


      "Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow

      1 Reply Last reply
      0
      • S smack_2k2

        I have some multiple dialogs and i have to exchange data form one to another. One solution that i think of is to save the data in the registry. Is there another way to do it ? Thanks

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

        to add to what David Crow wrote, are the dialogs part of the same application? I suggest that you either put the shared data in a class that both dialog can either share or have access to. putting data in the registry is a REALLY, REALLY bad idea if I understand correctly your problem.


        Maximilien Lincourt Your Head A Splode - Strong Bad

        1 Reply Last reply
        0
        • S smack_2k2

          I have some multiple dialogs and i have to exchange data form one to another. One solution that i think of is to save the data in the registry. Is there another way to do it ? Thanks

          T Offline
          T Offline
          Timothy Grabrian
          wrote on last edited by
          #4

          register a message: RegisterWindowMessage then: SendMessage with the first param HWND_BROADCAST and the second param return value from RegisterWindowMessage and in your windows check for that message in your main message loop and also check out http://www.flounder.com/messages.htm wWw.KruncherInc.cOm

          S 1 Reply Last reply
          0
          • T Timothy Grabrian

            register a message: RegisterWindowMessage then: SendMessage with the first param HWND_BROADCAST and the second param return value from RegisterWindowMessage and in your windows check for that message in your main message loop and also check out http://www.flounder.com/messages.htm wWw.KruncherInc.cOm

            S Offline
            S Offline
            smack_2k2
            wrote on last edited by
            #5

            Thanks all you guys ... i think i'll go with the last suggestion ... thanks

            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