AnnToolChecked Example for C++ 4.0 and later
Note: This topic is for Document/Medical only.
void CNewannDlg::OnAnnToolCheckedLead1(short iTool)
{
char cs[80];
char ToolString[25];
// TODO: Add your control notification handler code here
switch(iTool)
{
case ANNTOOL_SELECT:
strcpy(ToolString,"Selection pointer");
break;
case ANNTOOL_LINE:
strcpy(ToolString, "Line");
break;
case ANNTOOL_RECT:
strcpy(ToolString, "Rectangle");
break;
case ANNTOOL_ELLIPSE:
strcpy(ToolString, "Ellipse");
break;
case ANNTOOL_POLYLINE:
strcpy(ToolString, "Polyline");
break;
.
.
.
default:
strcpy(ToolString, "User defined");
}
sprintf(cs, "You selected a %s tool\n", ToolString);
MessageBox(cs, "", MB_OK);
}