Advertisement

How do I get rid of the beeping?

Started by August 05, 2000 11:04 PM
1 comment, last by Mike 24 years, 4 months ago
For the heck of it I wrote a rather useless little class in which I decided to subclass an edit control (the standared windows edit control) with SetWindowLong. My reason for doing this was so that when the user pressed enter after typing in a line of text it would handle the input. I got this all to work just fine and dandy, but I cannot get rid of the beeping (dinging... what ever you want to call it) noise that windows makes when a user hits the enter key inside the edit control. How do I get rid of the dinging? If you want to look at my source code you can get it from here. Thanks for any help.
I think its one of those events that Windows automatically has a sound for. In control panel->sounds you can specify sound effects to be played whenever something happens (e.g. when you minimize a window or a dialog pops up), so the end user would have control of this, and you can''t do anything about it. There might be some way to disable this in your program, but I don''t know how.

------------
- outRider -
Advertisement
I use Win32 most of the time so maybe that''s why I don''t see it but I never get the default beep when I press enter in a control. I don''t see anything that would cause beeps in your code. It is exactly as I implement edit controls in an animation tool I made once. This makes me wonder if it is indeed a system-wide setting of some sort. It may or may not be of any help but you can try GetSystemMetrics() to find out or maybe it''s just set up in your settings.

This topic is closed to new replies.

Advertisement