BCGSuite for MFC
int CBCGPToolBox::GetLastClickedTool ( int  nPage) const

Retrieves the currently selected tool on the specified page.

Returns
Index of the currently selected tool (button).

Use this function to retrieve the zero-based index of the currently selected tool on the tool page.

Parameters
nPageSpecifies the zero-based index of page.