Copyright © 1998-2010 MultiMedia Soft

EnableSound method

Previous pageReturn to chapter overviewNext page

Remarks

Enables or disables the specified sound. By default all the sounds are initially enabled.

 

Syntax

Visual Basic

control.EnableSound (nSound as Integer, bEnable as boolean)

 

Visual C++

void control.EnableSound (short nSound, BOOL bEnable);

 

Parameter

Description

 

 

nSound

Numerical value that identifies the sound to be enabled or disabled. Supported values are the following:

Mnemonic constant

Value

Meaning

SOUND_DOWN

0

The sound that occurs when the button is pressed.

SOUND_UP

1

The sound that occurs when the button is released.

SOUND_MOUSEOVER

2

The sound that occurs when the mouse enters the button area

SOUND_MOUSEOUT

3

The sound that occurs when the mouse leaves the button area

bEnable

Boolean value that specifies whether to enable or disable the sound.. Supported values are the following:

Value

Meaning

FALSE

The sound is disabled

TRUE (default)

The sound is enabled.