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 disable a item of TabCtrl??

how to disable a item of TabCtrl??

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.
  • G Offline
    G Offline
    Grrrr
    wrote on last edited by
    #1

    we know: { TCITEM tcItem; tcItem.mask = TCIF_TEXT; tcItem.pszText = _T("as"); m_TabShow.InsertItem(0, &tcItem); tcItem.pszText = _T("df"); m_TabShow.InsertItem(1, &tcItem); } can create a TabCtrl... but how to disable a item of TabCtrl? use m_TabCtrl.SetItemState()?? thanks...

    K 1 Reply Last reply
    0
    • G Grrrr

      we know: { TCITEM tcItem; tcItem.mask = TCIF_TEXT; tcItem.pszText = _T("as"); m_TabShow.InsertItem(0, &tcItem); tcItem.pszText = _T("df"); m_TabShow.InsertItem(1, &tcItem); } can create a TabCtrl... but how to disable a item of TabCtrl? use m_TabCtrl.SetItemState()?? thanks...

      K Offline
      K Offline
      KaRl
      wrote on last edited by
      #2

      I'm not sure it's possible, and it would be strange for the user to click on a tab without getting any action done. SO IMHO there are two solutions: 1) remove the tab 2) disable the controls contained in the tab.


      Silence Means Death Stand On Your Feet Inner Fear Your Worst Enemy

      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