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. Communication between Dialogs in a TabControl

Communication between Dialogs in a TabControl

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
2 Posts 2 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.
  • P Offline
    P Offline
    pma
    wrote on last edited by
    #1

    how to i communicate between dialogs in a tab-control ? my task is to notify another dialog to change its content and notify the tabcontrol to show this other dialog and hide the current. i use the "CTabCtrlSSL - An easy to use, flexible extended tab control By Derek Lakin" has anybody an idea ?

    R 1 Reply Last reply
    0
    • P pma

      how to i communicate between dialogs in a tab-control ? my task is to notify another dialog to change its content and notify the tabcontrol to show this other dialog and hide the current. i use the "CTabCtrlSSL - An easy to use, flexible extended tab control By Derek Lakin" has anybody an idea ?

      R Offline
      R Offline
      Roger Allen
      wrote on last edited by
      #2

      I havn't looked at the example, but a guess would be to have each of the dialogs in your tab control to inherit from a base class one which provides a virtual function DoUpdate() or some such. This gets overriden in each of the actual dialog class's. Now to update the dialog in a different tab, you get your parent (the tab control) to give you a pointer to the required one, using this base class pointer. You then call DoUpdate on it. To switch tot he other dialog, you should just call SetCurSel() or the equivalent on the tab control. Roger Allen Sonork 100.10016 In case you're worried about what's going to become of the younger generation, it's going to grow up and start worrying about the younger generation. - Roger Allen, but not me!

      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