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. data between forms sdi

data between forms sdi

Scheduled Pinned Locked Moved C / C++ / MFC
databasetutorial
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.
  • H Offline
    H Offline
    hellogany
    wrote on last edited by
    #1

    Hi how to transfer datas from one form to another form in sdi application.. I am using splitter window type application for my project. and is ther any way to trigger an button click event... Regard Gany

    C K 2 Replies Last reply
    0
    • H hellogany

      Hi how to transfer datas from one form to another form in sdi application.. I am using splitter window type application for my project. and is ther any way to trigger an button click event... Regard Gany

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      In general, the forms in your SDI application should represent some part of your model (the document class). In general, you should avoid direct "comunication" between two forms but one form should update the document which in turn notifies all the views that its state has been updated. The other views can then request the new state of the document and update themselves. On the other hand, if you really need direct access between the two forms, then this simply resolves to OOP: you just past the instance of one form to the instance of the other form. But if possible, you should avoid this solution.

      Cédric Moonen Software developer
      Charting control [v3.0] OpenGL game tutorial in C++

      1 Reply Last reply
      0
      • H hellogany

        Hi how to transfer datas from one form to another form in sdi application.. I am using splitter window type application for my project. and is ther any way to trigger an button click event... Regard Gany

        K Offline
        K Offline
        KarstenK
        wrote on last edited by
        #3

        you should disconnect data (and its processing) and view. Than you show the data in the views, and handle the "data changed" message to show actual data. It gives you flexibility to change you GUI later :-O

        Press F1 for help or google it. Greetings from Germany

        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