当应用程序或文档窗口发生更改时触发。 支持的平台:仅窗口 签名工 务 局: object.WindowChanged(WindowState) 言论在实现随应用程序或文档窗口进行跟踪的工具栏或无模式对话框时,此事件非常有用。VB 或 ObjectARX 应用程序可以使用HWNDFrame参数获取窗口的坐标,将这些坐标转换为屏幕或父坐标,并使用此信息定位其他窗口。 显示模式对话框时不会触发任何事件。 例子工 务 局: Private Sub AcadDocument_WindowChanged(ByVal WindowState As Long) ' This example intercepts a drawing WindowChanged event. ' ' This event is triggered when the window state of the ' current drawing window is changed. ' ' To trigger this example event: Change the window state of the drawing window ' ' For example: Minimize or maximize the drawing window Dim CurrentState As String ' Use the "WindowState" variable to determine the new drawing window state Select Case WindowState Case acMin: CurrentState = "Minimized" Case acMax: CurrentState = "Maximized" Case acNorm: CurrentState = "Normal Size" End Select MsgBox "The drawing window is now: " & CurrentState End Sub Visual LISP: Not available |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-1-8 19:13
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.