Block beep on keydown MFC dialog

Posted on 2005-04-26
Last Modified: 2013-11-20
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
Question by:cafechris
    LVL 1

    Author Comment

    Nevermind I got it.
    Just had to return TRUE
    LVL 1

    Author Comment

    I will try to PAQ this so It is availiable for others.

    Accepted Solution

    The question has been PAQ'd and the 175 points have been refunded.
    Community Support Moderator

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
    If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now