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. VK_TAB in an edit control in a dialog

VK_TAB in an edit control in a dialog

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

    There's no way this is the first time someone has encountered this but all of my searches are turning up unrelated crap. I have a CRichEditCtrl in a dialog (modal) that I want to be able to accept the TAB key. The dialog keeps butting in and stealing the TAB (as it normally would) to select the next control. There are no other controls that I would want to jump to so if there is a solution that will allow me to get the TAB key within the edit and not have the focus change, that would be ideal. I have tried playing with PreTranslateMessage() and a few other things but the focus continues to change not matter what I have tried. Thanks for any help you may be able to provide. Dave

    I 1 Reply Last reply
    0
    • D Dave_

      There's no way this is the first time someone has encountered this but all of my searches are turning up unrelated crap. I have a CRichEditCtrl in a dialog (modal) that I want to be able to accept the TAB key. The dialog keeps butting in and stealing the TAB (as it normally would) to select the next control. There are no other controls that I would want to jump to so if there is a solution that will allow me to get the TAB key within the edit and not have the focus change, that would be ideal. I have tried playing with PreTranslateMessage() and a few other things but the focus continues to change not matter what I have tried. Thanks for any help you may be able to provide. Dave

      I Offline
      I Offline
      igor1960
      wrote on last edited by
      #2

      Check WM_GETDLGCODE documenation. "...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..." Me

      D 1 Reply Last reply
      0
      • I igor1960

        Check WM_GETDLGCODE documenation. "...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..." Me

        D Offline
        D Offline
        Dave_
        wrote on last edited by
        #3

        Thank you very much! That did it!

        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