Capture BACK SPACE Key in Edit Box
C / C++ / MFC
2
Posts
2
Posters
4
Views
1
Watching
-
Hi I need to detect BackSpace as well as Delete Key in a Edit Box placed on Dialog Box in a Dialog based Application. The Problem is that Edit Box has no more Events like WM_CHAR, WM_KEYDown and WM_Key Up. Thanks
-
Hi I need to detect BackSpace as well as Delete Key in a Edit Box placed on Dialog Box in a Dialog based Application. The Problem is that Edit Box has no more Events like WM_CHAR, WM_KEYDown and WM_Key Up. Thanks
The edit control is designed to handle all key events in order to manage the input and display of the text. If you want to override its default behaviour then you need to subclass the control: Subclassing Controls - Win32 apps | Microsoft Docs[^].