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?
Printable View
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?
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.
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.