| 
 | virtual | 
Called by the framework when the user clicks a tool.
This function is called by the framework when the user clicks a tool. Override OnClickTool in a derived class to take additional actions. The default implementation sends the WM_COMMAND message to the owner of toolbox control.
| nPage | Specifies the current page index. | 
| nIndex | Specifies the zero-based index of clicked tool. |