lhb.nj 发表于 2002-9-22 18:25:00

[求助]

如何在 R14中利用MFC的对话框资源实现类似ARX2000中的BeginEditorCommand();
以便在对话框的成员函数中实现交互捕捉点等操作并更新对话框中的相应数据!

leeyeafu 发表于 2002-9-23 09:27:00

你所说的ARX2000中的BeginEditorCommand();是AdUi类库中CAdUiBaseDialog的成员函数,CAdUiBaseDialog与MFC对话框一样是从CDialog从派生的,使用方法基本一样。

lhb.nj 发表于 2002-9-23 10:42:00

因为ARX for AutoCAD R14没有该功能(BeginEditorCommand();)!它只能在CAD2000以上使用!

leeyeafu 发表于 2002-9-23 11:17:00

你是不是要做在R14和R2000中兼容的ARX,那么可能不能用AdUi类库,虽然它比较好用,但不兼容R14。MFC应该提供了类似的对话框初始化方法。

doublejie 发表于 2002-9-23 14:40:00

BeginEditorCommand()对应一下语句:
GetParent()->GetParent()->EnableWindow(TRUE);
      GetParent()->ShowWindow(SW_HIDE);
      GetParent()->GetParent()->SetFocus();
CompleteEditorCommand();对应于以下语句:
      GetParent()->ShowWindow(SW_SHOW);
                GetParent()->SetFocus();
                GetParent()->GetParent()->EnableWindow(FALSE);
                GetParent()->EnableWindow(TRUE);
页: [1]
查看完整版本: [求助]