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. Refresh Tab Controls

Refresh Tab Controls

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

    Hi all, I have an application with several tabs, selection made in one tab is suppose to update the values on a few other tabs (from database). I tried creating a function and call it when the selection is change. This function activates the refresh buttons on the various tabs. But this method is unable to work. XXXOnDbClick() { // processing done here ............. // processing end Ctab1 *tab1; Ctab2 *tab2; tab1->Refresh(); tab2->Refresh(); } void XXX:Refresh(); { // as the button is private, this is the only way I can activate it OnButtonRefresh(); } I want to be able to view the updated values when selecting the tab instead of having to press the refresh button everytime. Thanks in advance.

    M 1 Reply Last reply
    0
    • B Barm

      Hi all, I have an application with several tabs, selection made in one tab is suppose to update the values on a few other tabs (from database). I tried creating a function and call it when the selection is change. This function activates the refresh buttons on the various tabs. But this method is unable to work. XXXOnDbClick() { // processing done here ............. // processing end Ctab1 *tab1; Ctab2 *tab2; tab1->Refresh(); tab2->Refresh(); } void XXX:Refresh(); { // as the button is private, this is the only way I can activate it OnButtonRefresh(); } I want to be able to view the updated values when selecting the tab instead of having to press the refresh button everytime. Thanks in advance.

      M Offline
      M Offline
      mark novak
      wrote on last edited by
      #2

      Handle TCN_SELCHANGE instead of WM_LBUTTONDBLCLK

      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