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. Botton clicked on Pressing Tab Key.

Botton clicked on Pressing Tab Key.

Scheduled Pinned Locked Moved C / C++ / MFC
question
2 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.
  • L Offline
    L Offline
    Le rner
    wrote on last edited by
    #1

    Hi all; i m using this on PreTranslateMessage(MSG* pMsg) if (pMsg->message == WM_KEYDOWN && (pMsg->wParam == VK_RETURN)) { UINT CtrlID = ::GetDlgCtrlID( pMsg->hwnd ); // Check whether its that of your button. if( CtrlID != IDOK && CtrlID != IDCANCEL && ) { pMsg->wParam = VK_TAB; } } for using both on Tab key and enter key on controls execpt button controls. Now on presssing Tab key the button is clicked. I dont want to press button on Tab key. Please tell me what can i do? I m waiting for ur valuable suggestions. Thanks in advance.

    IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH

    modified on Friday, July 25, 2008 1:17 AM

    Y 1 Reply Last reply
    0
    • L Le rner

      Hi all; i m using this on PreTranslateMessage(MSG* pMsg) if (pMsg->message == WM_KEYDOWN && (pMsg->wParam == VK_RETURN)) { UINT CtrlID = ::GetDlgCtrlID( pMsg->hwnd ); // Check whether its that of your button. if( CtrlID != IDOK && CtrlID != IDCANCEL && ) { pMsg->wParam = VK_TAB; } } for using both on Tab key and enter key on controls execpt button controls. Now on presssing Tab key the button is clicked. I dont want to press button on Tab key. Please tell me what can i do? I m waiting for ur valuable suggestions. Thanks in advance.

      IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH

      modified on Friday, July 25, 2008 1:17 AM

      Y Offline
      Y Offline
      Yajnesh Narayan Behera
      wrote on last edited by
      #2

      The simple solution just remove the tab stop style from button controls.

      modified on Friday, July 25, 2008 2:19 AM

      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