Private Shared Function SetFocus(hwnd As System.IntPtr) As System.IntPtr
End Function
SetFocus(Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Window.Handle)
Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Window.Handle
我认为它可以在AutoCAD 2010中使用,甚至可以使用在更早的版本中。
但是其他解决方案Utils.SetFocusToDwgView()和MainWindow.Focus()更简单。
|
|
暂时没有评论
| 发表评论 - 不要忘了输入验证码哦! |
用户登陆
站点日历
站点统计
最新评论
CAD Focus [ 日期:2021-03-03 ] [ 来自: