如何实现交互对话框(选择一个点)
我想建立一个对话框,上面有一个按钮,点击后隐藏对话框,从CAD中选取一点,然后显示对话框,和坐标.不知如何实现这个交互过程?请高手指点迷津. <P>void AsdkAcUiDialogSample::OnButtonPoint() <BR>{<BR> // Hide the dialog and give control to the editor<BR> BeginEditorCommand();</P><P> ads_point pt;</P>
<P> // Get a point<BR> if (acedGetPoint(NULL, "\nPick a point: ", pt) == RTNORM) {<BR> // If the point is good, continue<BR> CompleteEditorCommand();<BR> m_strXPt.Format("%g", pt);<BR> m_strYPt.Format("%g", pt);<BR> m_strZPt.Format("%g", pt);<BR> DisplayPoint();<BR> } else {<BR> // otherwise cancel the command (including the dialog)<BR> CancelEditorCommand();<BR> }</P>
<P>}</P>
页:
[1]