• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 784
  • Last Modified:

Block beep on keydown MFC dialog

I need to get some keyboard events so I am having to use PreTranslateMessage() with  WM_KEYDOWN.
Unfortunately I get a beep(sound) when I press any non system key on my keyboard. How can I eliminate the sound so the users will not be so annoyed. I have tried to return FALSE. doesn't seem to do the job. And I don't want to adjust their volume.

Thanks guys

MS VC++ 6.0
MFC dialog
0
cafechris
Asked:
cafechris
  • 2
1 Solution
 
cafechrisAuthor Commented:
Nevermind I got it.
Just had to return TRUE
0
 
cafechrisAuthor Commented:
I will try to PAQ this so It is availiable for others.
0
 
RomModCommented:
The question has been PAQ'd and the 175 points have been refunded.
RomMod
Community Support Moderator
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now