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. Handling Shift + Tab key combination

Handling Shift + Tab key combination

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

    I have a dialog with with a list box and a Add button. When any item in the list box is selected then the Add button has to be enabled. I have a requirement where I would select the item in list box by pressing the Shift+Tab combination. (Shift+Tab combination would move the focus from control to control) How to know that Shift+Tab combination has occured.

    Z T R 3 Replies Last reply
    0
    • V V K 2

      I have a dialog with with a list box and a Add button. When any item in the list box is selected then the Add button has to be enabled. I have a requirement where I would select the item in list box by pressing the Shift+Tab combination. (Shift+Tab combination would move the focus from control to control) How to know that Shift+Tab combination has occured.

      Z Offline
      Z Offline
      zakkas2483
      wrote on last edited by
      #2

      RegisterHotKey() Will work for you. http://msdn.microsoft.com/en-us/library/ms646309.aspx[^]

      1 Reply Last reply
      0
      • V V K 2

        I have a dialog with with a list box and a Add button. When any item in the list box is selected then the Add button has to be enabled. I have a requirement where I would select the item in list box by pressing the Shift+Tab combination. (Shift+Tab combination would move the focus from control to control) How to know that Shift+Tab combination has occured.

        T Offline
        T Offline
        Taran9
        wrote on last edited by
        #3

        Follow the second question in this article. http://msdn.microsoft.com/en-us/magazine/cc301431.aspx[^] and for exact code, click on figure 4 http://msdn.microsoft.com/en-us/magazine/bb984939.aspx[^]

        1 Reply Last reply
        0
        • V V K 2

          I have a dialog with with a list box and a Add button. When any item in the list box is selected then the Add button has to be enabled. I have a requirement where I would select the item in list box by pressing the Shift+Tab combination. (Shift+Tab combination would move the focus from control to control) How to know that Shift+Tab combination has occured.

          R Offline
          R Offline
          Rajesh R Subramanian
          wrote on last edited by
          #4

          If the list box loses focus, you might disable the "Add" button and if the list box gains focus, you can enable the button. That sounds viable? This way you do not have to know if shift+tab was pressed or not.

          It is a crappy thing, but it's life -^ Carlo Pallini

          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