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. OnKeyDown & PropSheets

OnKeyDown & PropSheets

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

    Hi! I´m trying to capture key messages from within a prop page. What I did is to put an onkeydown message handler in the page where I wish to capture the key from. But it doesn´t work. I used this method in a the view of a Document View App and it worked fine. How does the property sheet deal with this kind of messages. Do I have to disable all the controls within the page? thanks in advance. Daniel Cespedes "There are 10 types of people, those who understand binary and those who do not" "Santa Cruz de la Sierra Paraiso Terrenal!" daniel.cespedes@ieee.org

    J 1 Reply Last reply
    0
    • C Cambalindo

      Hi! I´m trying to capture key messages from within a prop page. What I did is to put an onkeydown message handler in the page where I wish to capture the key from. But it doesn´t work. I used this method in a the view of a Document View App and it worked fine. How does the property sheet deal with this kind of messages. Do I have to disable all the controls within the page? thanks in advance. Daniel Cespedes "There are 10 types of people, those who understand binary and those who do not" "Santa Cruz de la Sierra Paraiso Terrenal!" daniel.cespedes@ieee.org

      J Offline
      J Offline
      John R Shaw
      wrote on last edited by
      #2

      Prop pages contain controls (which are normaly derived from a window). Therefore, the individual controls are getting the OnKeyDown messages not the parent window (a.k.a. Prop page). If you wish to will either need to install a hook when the prop window is created (uninstall when window closes), or subclass all those controls. Recommend you look at the articles on hooking at CP and else where. INTP

      C 1 Reply Last reply
      0
      • J John R Shaw

        Prop pages contain controls (which are normaly derived from a window). Therefore, the individual controls are getting the OnKeyDown messages not the parent window (a.k.a. Prop page). If you wish to will either need to install a hook when the prop window is created (uninstall when window closes), or subclass all those controls. Recommend you look at the articles on hooking at CP and else where. INTP

        C Offline
        C Offline
        Cambalindo
        wrote on last edited by
        #3

        Thanks John, now I have a better idea about what I have to do. Daniel Cespedes "There are 10 types of people, those who understand binary and those who do not" "Santa Cruz de la Sierra Paraiso Terrenal!" daniel.cespedes@ieee.org

        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