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. Question about taborder using win32 API

Question about taborder using win32 API

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++json
3 Posts 3 Posters 1 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.
  • P Offline
    P Offline
    Perry Bruins
    wrote on last edited by
    #1

    Hi all, I am trying to build my own C++ framework around the win32 API. The purpose of doing this is to learn how things work behind the (sometimes) mysterious scenes of MFC. My question is the following: When painting a dialog in VC, you can specify that a control has the WS_TABSTOP style. If you do that, you can also specify the taborder in which the focus will traverse when using the TAB key. In my framework, controls are also created using WS_TABSTOP. Firstly, in my framework, it seems the tab key has absolutely no effect whatsoever. Is the taborder functionality programmed in MFC somewhere? I couldn't find it, but maybe I am not looking close enough. Secondly, how can I specify the order in which the focus will traverse? It seems not related to the ID value of the control. Thirdly, if someone is interested in the code I am using related to answering this question, let me know. Best regards, Perry

    L M 2 Replies Last reply
    0
    • P Perry Bruins

      Hi all, I am trying to build my own C++ framework around the win32 API. The purpose of doing this is to learn how things work behind the (sometimes) mysterious scenes of MFC. My question is the following: When painting a dialog in VC, you can specify that a control has the WS_TABSTOP style. If you do that, you can also specify the taborder in which the focus will traverse when using the TAB key. In my framework, controls are also created using WS_TABSTOP. Firstly, in my framework, it seems the tab key has absolutely no effect whatsoever. Is the taborder functionality programmed in MFC somewhere? I couldn't find it, but maybe I am not looking close enough. Secondly, how can I specify the order in which the focus will traverse? It seems not related to the ID value of the control. Thirdly, if someone is interested in the code I am using related to answering this question, let me know. Best regards, Perry

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      All these functions are exported from Shlwapi.dll (7/24/2002) as (ASCII: StrRetToBufA, UNICODE: StrRetToBufW etc) If not included in your version of Shlwapi.h you could consider checking in the latest W32 SDK (note that the standard MSDevStudio files are usually quite out of date). Quick solution might be to add its declaration yourself in your code. You would need of course to make sure that the right version of Shlwapi.dll is installed on the target system

      1 Reply Last reply
      0
      • P Perry Bruins

        Hi all, I am trying to build my own C++ framework around the win32 API. The purpose of doing this is to learn how things work behind the (sometimes) mysterious scenes of MFC. My question is the following: When painting a dialog in VC, you can specify that a control has the WS_TABSTOP style. If you do that, you can also specify the taborder in which the focus will traverse when using the TAB key. In my framework, controls are also created using WS_TABSTOP. Firstly, in my framework, it seems the tab key has absolutely no effect whatsoever. Is the taborder functionality programmed in MFC somewhere? I couldn't find it, but maybe I am not looking close enough. Secondly, how can I specify the order in which the focus will traverse? It seems not related to the ID value of the control. Thirdly, if someone is interested in the code I am using related to answering this question, let me know. Best regards, Perry

        M Offline
        M Offline
        Michael Dunn
        wrote on last edited by
        #3

        Perry Bruins wrote: it seems the tab key has absolutely no effect whatsoever. You need to call IsDialogMessage() in your message loop for the standard keyboard navigation to work. Perry Bruins wrote: Secondly, how can I specify the order in which the focus will traverse? Tab order is the same as the Z-order of the controls. Use SetWindowPos() to change the Z-order. --Mike-- Ericahist | CP SearchBar v2.0.2 | Homepage | RightClick-Encrypt | 1ClickPicGrabber "That probably would've sounded more commanding if I wasn't wearing my yummy sushi pajamas."   -- Buffy

        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