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