Information générale
Catégorie:
Codage, syntaxe et commandes
You can also use the MessageBeep Win32 API function:
DECLARE INTEGER MessageBeep IN Win32API ;
INTEGER nSoundType
= MessageBeep(lnSoundType)
where lnSoundType can be:
MB_ICONHAND 0x00000010
MB_ICONQUESTION 0x00000020
MB_ICONEXCLAMATION 0x00000030
MB_ICONASTERISK 0x00000040
MB_OK 0x00000000
Standard beep using the computer speaker 0xFFFFFFFF
For ex., if you want the question sound:
= MessageBeep(0x00000020)
The corresponding sounds are defined in ControlPanel/Sounds. If the sounds are not defined, than... better use the standard beep which works all the time.
Vlad
>Have reached a point in my app where I want the users attention. How do I make the bell sound?
>
>thanks - brenda
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement