BCGControlBar Pro for MFC
BOOL CBCGPEditListBase::EnableButton ( int  iButtonNum,
BOOL  bEnable = TRUE 
)

Allows to enable or disable a button that manages list control items

Returns
0 if the button with specified index does not exist; nonzero if the button was found and enabled or disabled successfully.

Call this function to enable or disable one of the buttons that located at the top of the CBCGPEdilListBase - derived control.

Parameters
iButtonNumSpecifies the button index in the button's internal list
bEnableSpecifies whether the button should be enabled or disabled