BCGControlBar Pro for MFC
UINT CBCGPToolbarOptions::m_nUserToolbarCommandIDLast

The command ID of the last user tool. If this member is 0, user tools are not available