beeping with certain MB_ flags

This is a discussion on beeping with certain MB_ flags within the Windows Programming forums, part of the Platform Specific Boards category; why is it that a messagebox() beeps when there are a certain flags, such as MB_YESNO or MB_OKCANCEL? can you ...

  1. #1
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401

    beeping with certain MB_ flags

    why is it that a messagebox() beeps when there are a certain flags, such as MB_YESNO or MB_OKCANCEL? can you turn it off?
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  2. #2
    Registered User Penguin of Oz's Avatar
    Join Date
    Dec 2002
    Posts
    16
    Those beeps are part of Windows, configurable through the sound settings in the Control Panel. I'm not sure how you'd go about turning them off... I don't see why you'd want to either, they're there specifically to alert the user.

    Taking a peek through the Win32 Programmer's Reference now...

    Side note: hey, that's a useful function... MessageBeep
    MessageBoxIndirect looks interesting too.

    Ah well, I couldn't find anything in the reference... you might want to take a look at MessageBoxIndirect though... maybe it doesn't play a MessageBeep before displaying the message box seeing as it's totally customised.
    "I don't think there's anything else I can do... my shoes are tied"

  3. #3
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    the thing is, i want a box that can display a string, and where there are two possible choices for the user to make. i dont want it as an alert, just something where the user has an option. dont worry about it though, i reckon ill just design a nice form with labels and buttons or something like that.
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. obtaining which combination of flags are being set
    By stanlvw in forum C++ Programming
    Replies: 4
    Last Post: 07-16-2008, 03:43 AM
  2. reading a file into a block
    By mickey0 in forum C++ Programming
    Replies: 19
    Last Post: 05-03-2008, 06:53 AM
  3. Cannot get interface flags: Invalid argument
    By nasim751 in forum C Programming
    Replies: 1
    Last Post: 04-15-2008, 03:27 AM
  4. Bit Flags
    By Padawan in forum C Programming
    Replies: 15
    Last Post: 03-30-2004, 10:38 PM
  5. Flags, the ambiguity of
    By Jeremy G in forum C++ Programming
    Replies: 1
    Last Post: 01-25-2003, 11:41 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21