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. Remove focus on a disabled tab item

Remove focus on a disabled tab item

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

    Hi all, I have created a tab control with 4 tab items.2 tab items are disabled initially.Only the enabled tab items must be focussed when the mouse pointer is placed onto the corresponding enabled tab item. problem i am facing here is even the disabled tab items are focussed when the mouse pointer is moved onto the corresponding disabled tab item pls suggest me how to avoid getting focus on the disabled tab item Thanks, Sireesha

    P 1 Reply Last reply
    0
    • S sireesha_sree

      Hi all, I have created a tab control with 4 tab items.2 tab items are disabled initially.Only the enabled tab items must be focussed when the mouse pointer is placed onto the corresponding enabled tab item. problem i am facing here is even the disabled tab items are focussed when the mouse pointer is moved onto the corresponding disabled tab item pls suggest me how to avoid getting focus on the disabled tab item Thanks, Sireesha

      P Offline
      P Offline
      Phil J Pearson
      wrote on last edited by
      #2

      You could try catching the GetFocus event and setting the focus back to the previously-focused tab.

      Phil


      The opinions expressed in this post are not necessarily those of the author, especially if you find them impolite, inaccurate or inflammatory.

      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