Available in the LEADTOOLS Imaging toolkit. |
AutoSetTool Example for C++ 4.0 and later
CAnnToolbar AnnToolbar;
AnnToolbar = m_LEAD1.GetAnnToolbar();
//now lead1 will automatically set the tool when you click on the toolbar
AnnToolbar.SetAutoSetTool(TRUE);