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. how to transfer data between the tabs

how to transfer data between the tabs

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

    Hi, I have created a tab control. i have placed some controls on first tab page(TAB1). And some another controls on second tab page(TAB2). I want to send the data from tabpage1 to tabpage2. How can do it. plz suggest any solution? with regards, Koti

    C 1 Reply Last reply
    0
    • K kotiramkoteswararao

      Hi, I have created a tab control. i have placed some controls on first tab page(TAB1). And some another controls on second tab page(TAB2). I want to send the data from tabpage1 to tabpage2. How can do it. plz suggest any solution? with regards, Koti

      C Offline
      C Offline
      capricious_001
      wrote on last edited by
      #2

      Not sure what data you would want to send, but you can use pipes to exchange data. Otherwise if its globally stored data in variables you can update the variables then you can have your own user defined windows messages and send messages to and from each tab window as shown below.

      #define UWM_TABPAGE1 WM_APP+1
      
      ...
      
      
      SendMessage(tab1_hwnd, UWM_TABPAGE1, NULL, NULL);
      
      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