Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MessageBox without a beep

Status
Not open for further replies.

siftach

Programmer
Jul 22, 2003
78
IL
What should I use as the parameters to disable to beep that accompanies the MessageBox function?
 
Either
1) You let the user decide if he/she/it/garlic wants beep by configuration in the control panel. Ie you just live with it...

2) Dont supply any parameters MessageBeep interprets when you show the message box.
Ie dont have one of these flags set:
MB_ICONASTERISK
MB_ICONEXCLAMATION
MB_ICONHAND
MB_ICONQUESTION
as they will result the sound defined in config panel.


/Per

if (typos) cout << &quot;My fingers are faster than my brain. Sorry for the typos.&quot;;
 
I don't supply any of these parameters, I do it like this:

MessageBox (NULL, szBuffer, &quot;Status&quot;, MB_OK);

I don't want to cancel the defined system sound for that beep, other programs need it.
 
choose another sound scheme from control panel->soundsAndMultimedia.

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top