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?
Posted on 2006-07-22 01:32:13 by homebrew89
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.
Posted on 2006-07-22 02:26:59 by SpooK
homebrew89, process VK_RETURN in response to WM_CHAR message instead of WM_KEYDOWN, and return 0 from the windowproc - that will stop beeping.
Posted on 2006-07-22 04:53:46 by Morris
Thanks everybody, WM_CHAR did the trick!  :shock:
Posted on 2006-07-22 18:15:35 by homebrew89