Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Handling a WM_KEYDOWN message...
Hello, i'm new to MFC and i have got this problem:
i have a dialog with a CEdit control and i want to be able to handle a WM_KEYDOWN whenever i press a button while the editbox is focused..
i have added a "OnKeyDownText1(UINT nChar,UINT n_RepCnt,UINT nFlags)" handle in my dialog class and this (ON_WM_KEYDOWN(IDC_EDIT1,OnKeyDownText1)) in the message map, but it doesn't seem to work.. i've tried to trace the program and have found out that it never reaches my handler.. so how do i do it?
0 · ·