Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can you avoid the sound with Messagebox()
Message
From
14/05/2004 06:14:06
 
 
To
14/05/2004 01:44:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00903965
Message ID:
00903989
Views:
78
This message has been marked as the solution to the initial question of the thread.
Hi Doyle!
Try my code and have a fun ;)

#define MAX_VOLUME 0xFFFF
#define MIN_VOLUME 0x0000
DECLARE Integer auxGetNumDevs IN WINMM.DLL
DECLARE Integer waveOutSetVolume IN WINMM.DLL Integer uDeviceID, Integer dwVolume

uDeviceID = auxGetNumDevs()
waveOutSetVolume(uDeviceID,MIN_VOLUME)
MESSAGEBOX("Denis",16,"Sound OFF")
waveOutSetVolume(uDeviceID,MAX_VOLUME)
=MESSAGEBOX("Denis",16,"Sound ON")

Denis
P.S. I got your offer.. thinking now...



>All of the iterations of Messagebox make different sounds, but can I get silence please?
>
>
>
>		cMessageTitle = 'Please make a selection'
>		cMessageText = 'Choose one or all.'
>		nDialogType = 0 + 64 + 0
>		nAnswer = Messagebox(cMessageText, nDialogType, cMessageTitle)
>		
>		nanswer = MESSAGEBOX('Choose one or all',16,'Please make a selection')
>	
>	
>		nanswer = MESSAGEBOX('Choose one or all',256,'Please make a selection')
>		
>		
>
>
>
>In other words, can I avoid the sound with Messagebox()
>
>TTA
>
>dg
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform