BCGControlBar Pro for MFC
int CBCGPToolBoxEx::GetLastClickedTool ( int &  nClickedPage) const

Retrieves the currently selected tool.

Returns
Index of the currently selected tool (button).

Use this function to retrieve the zero-based index of the currently selected tool and the index of page where the tool is located.

Parameters
nClickedPageOut parameter. When the function returns, it contains the zero-based index of a page where the clicked tool is located.