How to get characters just deleted by BackSpace key(or Delete key)
-
Hi everyone, My name is Toan.I am studying about hook programming.And when I do my project,I wonder there is any way to get the characters just deleted by using Backspace key(or Delete key). Thanks for reading my question. (My English is not very good.Sorry for using any wrong words)
-
Hi everyone, My name is Toan.I am studying about hook programming.And when I do my project,I wonder there is any way to get the characters just deleted by using Backspace key(or Delete key). Thanks for reading my question. (My English is not very good.Sorry for using any wrong words)
I understand you are editing in an edit control which you expect to UNDO when you delete a character. Am I correct? If so use CEdit Clipboard Operations.;)
-
I understand you are editing in an edit control which you expect to UNDO when you delete a character. Am I correct? If so use CEdit Clipboard Operations.;)
Thanks Manikandan.But my problem is that I want to write a program processing input and output.For example,if the user press the Backspace key and the key deleted is 'a' the program will replace that character by character 'b'.
-
Thanks Manikandan.But my problem is that I want to write a program processing input and output.For example,if the user press the Backspace key and the key deleted is 'a' the program will replace that character by character 'b'.
May be this one helps you... BOOL CParentWnd::PreTranslateMessage(MSG* pMsg) { if (pMsg->message == WM_KEYDOWN) { if(pMsg->hwnd == urCtrl.GetSafeHwnd()) { switch (pMsg->wParam ) { case VK_BACK_SPACE : {//TRY HERE} } } }
-
May be this one helps you... BOOL CParentWnd::PreTranslateMessage(MSG* pMsg) { if (pMsg->message == WM_KEYDOWN) { if(pMsg->hwnd == urCtrl.GetSafeHwnd()) { switch (pMsg->wParam ) { case VK_BACK_SPACE : {//TRY HERE} } } }
Sorry for my confuse question.My project is a Dll component processing input and output.For example,when my program is running and you are working with MS Word,you press the Backspace and the character just deleted is 'a',my program hook that event and show a message "Hello".(or any other actions)
-
Sorry for my confuse question.My project is a Dll component processing input and output.For example,when my program is running and you are working with MS Word,you press the Backspace and the character just deleted is 'a',my program hook that event and show a message "Hello".(or any other actions)
Thanks for your helping,Manikandan