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?
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?
[email protected]
Microsoft Visual Studio .NET 2003 Enterprise Architect
Windows XP Pro
Code Tags
Programming FAQ
Tutorials
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"
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.
[email protected]
Microsoft Visual Studio .NET 2003 Enterprise Architect
Windows XP Pro
Code Tags
Programming FAQ
Tutorials