Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows API
  4. System bell sound when I switch my app between fullscreen/window. How to stop bell sound?

System bell sound when I switch my app between fullscreen/window. How to stop bell sound?

Scheduled Pinned Locked Moved Windows API
helptutorialquestion
2 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Synchronizer
    wrote on last edited by
    #1

    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!

    L 1 Reply Last reply
    0
    • S Synchronizer

      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!

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups