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. traping Esc key in textbox?

traping Esc key in textbox?

Scheduled Pinned Locked Moved C / C++ / MFC
3 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.
  • V Offline
    V Offline
    viral_umang hotmail com
    wrote on last edited by
    #1

    I've created a single dialog based application. In the dialog box i am using a textbox. Now i want to trap when Escape key pressed in the textbox. When i press the Esc key the OnCancel virtual function of the CDialog called which terminates the application. Viral Joshi.

    P T 2 Replies Last reply
    0
    • V viral_umang hotmail com

      I've created a single dialog based application. In the dialog box i am using a textbox. Now i want to trap when Escape key pressed in the textbox. When i press the Esc key the OnCancel virtual function of the CDialog called which terminates the application. Viral Joshi.

      P Offline
      P Offline
      prasad_som
      wrote on last edited by
      #2

      Doesn't the answer to your previous[^] thread satisfies your query.

      Prasad Notifier using ATL | Operator new[],delete[][^]

      1 Reply Last reply
      0
      • V viral_umang hotmail com

        I've created a single dialog based application. In the dialog box i am using a textbox. Now i want to trap when Escape key pressed in the textbox. When i press the Esc key the OnCancel virtual function of the CDialog called which terminates the application. Viral Joshi.

        T Offline
        T Offline
        ThatsAlok
        wrote on last edited by
        #3

        viral_umang@hotmail.com wrote:

        I've created a single dialog based application. In the dialog box i am using a textbox. Now i want to trap when Escape key pressed in the textbox. When i press the Esc key the OnCancel virtual function of the CDialog called

        handle PreTanslateMessage virtual function

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        cheers, Alok Gupta Global Interface Table: An Easy Way to Marshal an Interface Pointer[new] VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

        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