CToolBarCtrl::EnableButton

This method enables or disables the specified button in a toolbar control. When a button has been enabled, it can be pressed and checked. To change more than one button state, consider calling SetState instead.

At a Glance

Header file: Afxcmn.h
Platforms: Palm-size PC, H/PC Pro
Windows CE versions: 2.10 and later
Complete documentation: Visual C++ documentation

Syntax

BOOL EnableButton( int nID, BOOL bEnable = TRUE );