|
发表于 2003-11-6 10:50:00
|
显示全部楼层
; by 龙龙仔
(vl-load-com)
(defun C:XDE (/ XDB APP)
(setq APP (vlax-get-acad-object))
(if (/= (substr (vla-get-caption APP) 1 12) "龙龙仔工作室")
(progn
(arxload "acadx.arx" NIL)
(setq XDE (vla-getinterfaceobject APP "AcadX.Drawingeditor"))
(vlax-put-property
XDE
'CAPTION
"龙龙仔工作室"
)
(vlax-release-object APP)
(arxunload "acadx.arx")
)
)
(princ)
)
(C:XDE)
(princ)
;|
通过VBA更改AutoCAD窗口的标题名称 返回目录
来源: 乐筑天下 作(译)者: 郑立楷
上传者: mccad 上传时间:2002年9月17日
Declare Function SetWindowText Lib "user32" Alias "SetWindowTextA" (ByVal hwnd As Long, ByVal lpString As
String) As Long
Public Declare Function GetParent Lib "user32" (ByVal hwnd As Long) As Long
Sub SetAcadTitle()
Dim hw&
hw = GetParent(GetParent(ThisDrawing.hwnd))
SetWindowText hw, "乐筑天下 http://www.mjtd.com"/;
End Sub
|; |
|