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. How to implement Ctrl + tab to navigate between tabs in a CTabCtrl

How to implement Ctrl + tab to navigate between tabs in a CTabCtrl

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
3 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.
  • A Offline
    A Offline
    Amrit Agr
    wrote on last edited by
    #1

    Hi guys, In my application I had a CTabCtrl object & it has 2 tab window. I want to navigate between these tabs window via Ctrl + TAB. Currently i can do the same in preTranslateMsg i.e. to look for keydown messages & filter it out ctrl + tab key out of it & calling setcusel(). I need to know if there is any other way that I can implement the same functionality. Thanks, Amrit

    D 1 Reply Last reply
    0
    • A Amrit Agr

      Hi guys, In my application I had a CTabCtrl object & it has 2 tab window. I want to navigate between these tabs window via Ctrl + TAB. Currently i can do the same in preTranslateMsg i.e. to look for keydown messages & filter it out ctrl + tab key out of it & calling setcusel(). I need to know if there is any other way that I can implement the same functionality. Thanks, Amrit

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      I'm curious why you don't use a CPropertySheet with two CPropertyPage objects instead. Navigation would be automatically handled by the framework.

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

      A 1 Reply Last reply
      0
      • D David Crow

        I'm curious why you don't use a CPropertySheet with two CPropertyPage objects instead. Navigation would be automatically handled by the framework.

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

        A Offline
        A Offline
        Amrit Agr
        wrote on last edited by
        #3

        Thanks David :)

        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