OnCommand and Pretranslate message
-
I put in a handler for both functions. IF I step in, on hitting enter in my textbox, I find that if the pretranslate code is there (returning true after handling VK_RETURN and KDOWN ) the OnCommand doesnt get triggered. I am trying to figure out why but not getting the reason from MSDN. Is this behavior to be expected and if so why? I cant quite figure out what translate msg does that makes onCommnad not run.. In the onCommand I look at the wParam,lParam and IDOK) Appreciate your help, ns
-
I put in a handler for both functions. IF I step in, on hitting enter in my textbox, I find that if the pretranslate code is there (returning true after handling VK_RETURN and KDOWN ) the OnCommand doesnt get triggered. I am trying to figure out why but not getting the reason from MSDN. Is this behavior to be expected and if so why? I cant quite figure out what translate msg does that makes onCommnad not run.. In the onCommand I look at the wParam,lParam and IDOK) Appreciate your help, ns
>IF I step in, on hitting enter in my textbox Are you sure that OnCommand had to be generated on this event? For examlpe, OnComand will be generate if you click some button, but not if the button set focus or lost using Tab key. Pretranslate massege gets ALL messages. And if you do all right WM_COMMAND will be prosecute or not, how you want. ================================ Useful links
-
>IF I step in, on hitting enter in my textbox Are you sure that OnCommand had to be generated on this event? For examlpe, OnComand will be generate if you click some button, but not if the button set focus or lost using Tab key. Pretranslate massege gets ALL messages. And if you do all right WM_COMMAND will be prosecute or not, how you want. ================================ Useful links