Hi everybody. I'm not exactly new here, I had an account before the site got hacked (like a year ago?). Well anyway, I subclassed an edit control to look for VK_RETURN and then perform an action and it works just fine, except one thing: it beeps! I've looked all over the internet but I just find unanswered posts in other forums about it, so I thought I would ask you guys. How do you stop this beeping everytime the user hits enter?
Try processing uMsg for "WM_SYSKEYDOWN" into a switch statement that detects wParam for stuff like "VK_RETURN". If that doesn't work, the beep might be a "focus specific" issue.
homebrew89, process VK_RETURN in response to WM_CHAR message instead of WM_KEYDOWN, and return 0 from the windowproc - that will stop beeping.
Thanks everybody, WM_CHAR did the trick! :shock: