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. Tab Control in window

Tab Control in window

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 Posts 3 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
    Anonymous
    wrote on last edited by
    #1

    i have created a window using CreateWindow() having buttons as child windows. now i want to have focus on one of the buttons and also have tabbed control on the window, i.e, when i press tab the control shifts from one button to another. Also when i press ENTER on one of the buttons it should get executed. how do i achive it? it basically means that my window is not responding to the keyboard control. so how do i achieve it?

    N 1 Reply Last reply
    0
    • A Anonymous

      i have created a window using CreateWindow() having buttons as child windows. now i want to have focus on one of the buttons and also have tabbed control on the window, i.e, when i press tab the control shifts from one button to another. Also when i press ENTER on one of the buttons it should get executed. how do i achive it? it basically means that my window is not responding to the keyboard control. so how do i achieve it?

      N Offline
      N Offline
      Nilesh K
      wrote on last edited by
      #2

      Create your controls with WS_TABSTOP, and set the tab order for movement.

      - Nilesh "Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw

      A 1 Reply Last reply
      0
      • N Nilesh K

        Create your controls with WS_TABSTOP, and set the tab order for movement.

        - Nilesh "Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw

        A Offline
        A Offline
        ask_you
        wrote on last edited by
        #3

        i had created the controls with WS_TABSTOP. how do i set the tab order movement?

        N 1 Reply Last reply
        0
        • A ask_you

          i had created the controls with WS_TABSTOP. how do i set the tab order movement?

          N Offline
          N Offline
          Nilesh K
          wrote on last edited by
          #4

          Trap the 'TAB' key in the parent window and move over the controls using GetNextDlgTabItem function. Hope this helps.

          - Nilesh "Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw

          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