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. Tab pages ,, communication problem!!

Tab pages ,, communication problem!!

Scheduled Pinned Locked Moved C / C++ / MFC
c++databasehelptutorialquestion
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.
  • R Offline
    R Offline
    rohit dhamija 0
    wrote on last edited by
    #1

    Dear All, I am developing a dialog based application using MFC VC++ Version 6.0 for Windows 2000. The application consists of a TabControl derived from CTabCtrl Class having three tab pages in it. Also, the tabControl has Apply, Cancel , Ok button. My query is how to communicate between the tabpages data and OK,Apply button ?? Similiar case, like "Display properties" dialog box which appears upon right clicking on the desktop. When we select a background and click on apply or ok button to make the changes, the background color gets changed. Following is the code to create the tab pages. I have radio buttons in first CGeneralSettings page and I want to do various operation after user selects one of the radio button and clicks OK or APPLY button /////////////////////////////////// The CMyTabCtrl has following datamember::::::: class CMyTabCtrl : public CTabCtrl { public: CMyTabCtrl(); CDialog *m_tabPages[3]; int m_tabCurrent; int m_nNumberOfPages; ... ..}; CMyTabCtrl::CMyTabCtrl() { m_tabPages[0]=new CGeneralSettings; m_tabPages[1]=new CAuthorization; m_tabPages[2]=new CUnInstallation; m_nNumberOfPages=3; } CMyTabCtrl::~CMyTabCtrl() { for(int nCount=0; nCount < m_nNumberOfPages; nCount++){ delete m_tabPages[nCount]; } } /////////////////////////// Please feel free to ask further clarifications in this regards, Regards, Rohit

    P 1 Reply Last reply
    0
    • R rohit dhamija 0

      Dear All, I am developing a dialog based application using MFC VC++ Version 6.0 for Windows 2000. The application consists of a TabControl derived from CTabCtrl Class having three tab pages in it. Also, the tabControl has Apply, Cancel , Ok button. My query is how to communicate between the tabpages data and OK,Apply button ?? Similiar case, like "Display properties" dialog box which appears upon right clicking on the desktop. When we select a background and click on apply or ok button to make the changes, the background color gets changed. Following is the code to create the tab pages. I have radio buttons in first CGeneralSettings page and I want to do various operation after user selects one of the radio button and clicks OK or APPLY button /////////////////////////////////// The CMyTabCtrl has following datamember::::::: class CMyTabCtrl : public CTabCtrl { public: CMyTabCtrl(); CDialog *m_tabPages[3]; int m_tabCurrent; int m_nNumberOfPages; ... ..}; CMyTabCtrl::CMyTabCtrl() { m_tabPages[0]=new CGeneralSettings; m_tabPages[1]=new CAuthorization; m_tabPages[2]=new CUnInstallation; m_nNumberOfPages=3; } CMyTabCtrl::~CMyTabCtrl() { for(int nCount=0; nCount < m_nNumberOfPages; nCount++){ delete m_tabPages[nCount]; } } /////////////////////////// Please feel free to ask further clarifications in this regards, Regards, Rohit

      P Offline
      P Offline
      Prakash Nadar
      wrote on last edited by
      #2

      All you need is apply,ok method implemented in each tab pages, can call them when you clicked on apply button on the tabcontrol (in a loop maybe).


      I'll write a suicide note on a hundred dollar bill - Dire Straits

      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