System bell sound when I switch my app between fullscreen/window. How to stop bell sound?
-
My window procedure has this to change back and forth between fullscreen and window modes: -------------------------------------------- BEGIN CODE ------------------------------------ case WM_SYSKEYUP: switch(wParam) { case VK_RETURN: if(m_bFullScreen == false) //If not fullscreen, go fullscreen. { SwitchToFullScreenMode(); m_bFullScreen = true; } else if(m_bFullScreen == true) //Else, we are fullscreen, switch to window. { SwitchToWindowMode(); m_bFullScreen = false; } return 0; } //Endof switch ----------------------------------------- END CODE ------------------------------------------- Does using the "case WM_SYSKEYUP:" statement cause the system ding sound to happen? Is there a way I can make my program stop making a beep sound everytime I hit alt+enter? Thanks for any help!
-
My window procedure has this to change back and forth between fullscreen and window modes: -------------------------------------------- BEGIN CODE ------------------------------------ case WM_SYSKEYUP: switch(wParam) { case VK_RETURN: if(m_bFullScreen == false) //If not fullscreen, go fullscreen. { SwitchToFullScreenMode(); m_bFullScreen = true; } else if(m_bFullScreen == true) //Else, we are fullscreen, switch to window. { SwitchToWindowMode(); m_bFullScreen = false; } return 0; } //Endof switch ----------------------------------------- END CODE ------------------------------------------- Does using the "case WM_SYSKEYUP:" statement cause the system ding sound to happen? Is there a way I can make my program stop making a beep sound everytime I hit alt+enter? Thanks for any help!
My guess is the ALT+ENTER combination may do what you want it to do, but also still gets handled as a regular keyboard input and the system (or your app itself) is unhappy since the active control does not accept it as a valid input. If so, you need to tell your code the handling of the message is done, maybe trough the return value. BTW: please use PRE tags for showing code snippets. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.