|
发表于 2005-8-23 16:46:00
|
显示全部楼层
void AsdkAcUiDialogSample::OnButtonPoint()
{
// Hide the dialog and give control to the editor
BeginEditorCommand();
ads_point pt;
// Get a point
if (acedGetPoint(NULL, "\nPick a point: ", pt) == RTNORM) {
// If the point is good, continue
CompleteEditorCommand();
m_strXPt.Format("%g", pt[X]);
m_strYPt.Format("%g", pt[Y]);
m_strZPt.Format("%g", pt[Z]);
DisplayPoint();
} else {
// otherwise cancel the command (including the dialog)
CancelEditorCommand();
}
} |
|