在移动应用程序或绘图窗口移动或调整大小后触发。 支持的平台:仅窗口 签名工 务 局: object.WindowMovedOrResized(HWNDFrame, bMoved) 言论在实现随应用程序或文档窗口进行跟踪的工具栏或无模式对话框时,此事件非常有用。VB 或 ObjectARX 应用程序可以使用HWNDFrame参数获取窗口的坐标,将这些坐标转换为屏幕或父坐标,并使用此信息定位其他窗口。 显示模式对话框时不会触发任何事件。 例子工 务 局: Private Sub AcadDocument_WindowMovedOrResized(ByVal HWNDFrame As LONG_PTR, ByVal bMoved As Boolean) ' This example intercepts a drawing WindowMovedOrResized event. ' ' This event is triggered when the drawing window is moved or resized ' ' To trigger this example event: Move or resize the drawing window Dim CurrentState As String ' Use the "bmoved" variable to determine if we moved or sized the drawing window CurrentState = IIf(bMoved, "Moving", "Sizing") MsgBox "The drawing window appearance was changed by: " & CurrentState End Sub Visual LISP: Not available |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-1-8 19:38
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.