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. CWnd::OnKeyDown

CWnd::OnKeyDown

Scheduled Pinned Locked Moved C / C++ / MFC
debuggingquestion
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
    De Nardis Andrea
    wrote on last edited by
    #1

    Hi folks, I need to be notified when a CDialog-derived class receive a WM_KEYDOWN message. This dialog is the main window of a secondary thread (not the main application one). I can see w/ the debug trace that the message is posted by my OnKeyDown oveloaded function is never called. Any idea about this? Thanx a lot in advance. Best Regards;)

    V 1 Reply Last reply
    0
    • D De Nardis Andrea

      Hi folks, I need to be notified when a CDialog-derived class receive a WM_KEYDOWN message. This dialog is the main window of a secondary thread (not the main application one). I can see w/ the debug trace that the message is posted by my OnKeyDown oveloaded function is never called. Any idea about this? Thanx a lot in advance. Best Regards;)

      V Offline
      V Offline
      valikac
      wrote on last edited by
      #2

      Interesting. Overload PreTranslateMessage(). Does it process WM_KEYDOWN? Kuphryn

      D 1 Reply Last reply
      0
      • V valikac

        Interesting. Overload PreTranslateMessage(). Does it process WM_KEYDOWN? Kuphryn

        D Offline
        D Offline
        De Nardis Andrea
        wrote on last edited by
        #3

        I noticed PreTranslateMessage works properly but the message is lost somewhere in between the MFC call stack. I am confident this could be due the fact there is a OCX control on the dialog that probably process the WM_. How can I be notified of the message instead of the control(s)? Best Regars, andrea:-D

        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