Copyright © 2002-2009 MultiMedia Soft 
Return to index  
 
abmSetSoundSync function 
 
Remarks
Forces the selected sound to be played in synchronous mode. Note that when a synchronous sound is playing no other sound will be generated by the control.
Return value
None
Syntax
 
void abmSetSoundSync
HWND hWndBtn
short index
BOOL bSync 
); 
 
 
Parameters
Description
hWndBtn
Windows handle associated to the button.
index
Numerical value that represents the index of the sound property to change. Supported values are the following:  
Value
Meaning
SOUND_DOWN (0)
Changes the SoundDown property
SOUND_UP (1)
Changes the SoundUp property
SOUND_MOUSEOVER (2)
Changes the SoundMouseOver property
SOUND_MOUSEOUT (3)
Changes the SoundMouseOut property
bSync
Boolean flag that determines if the sound will play synchronously or asynchronously. Supported values are the following:  
Value
Meaning
FALSE (default)
The sound will play asynchronously and will not generate any event
TRUE
The sound will play synchronously and will generate an event when done
 
 
 
 
 
 
 
 
Copyright © 2002-2009 MultiMedia Soft 
Return to index