Click here for NewsObjects Overview
EnableButton Method (Toolbar Control)
Windows - Visual C++


Description
The EnableButton method enables or disables the specified button.

Syntax
long result = EnableButton(short ButtonId, BOOL bEnable);

The EnableButton syntax has these parts:

Part

Description

buttonID

A short integer containing the ID of the button to be enabled or disabled. If -1, all visible buttons will be enabled or disabled.

enable

A Boolean indicating whether the button should be enabled or disabled.

result

A Boolean containing TRUE if the method succeeds and FALSE otherwise.

Remarks
See Toolbar for a list of valid button IDs. 

Back to: Toolbar Methods