アプリケーションまたはドキュメント ウィンドウの状態を指定します。
サポートされているプラットフォーム: Windows のみ
読み込み専用: いいえ
タイプ: acWindowState 列挙型
追加の注意はありません。
VBA:
Sub Example_WindowState() ' This example reads and displays the current window state of the AutoCAD application. Dim CurrentState As String ' Use the "WindowState" variable to determine the window state of AutoCAD Select Case WindowState Case acMin: CurrentState = "Minimized" Case acMax: CurrentState = "Maximized" Case acNorm: CurrentState = "Normal Size" End Select ' Display window state MsgBox "AutoCAD is now: " & CurrentState End Sub
Visual LISP:
(vl-load-com) (defun c:Example_WindowState() ;; This example reads and displays the current window state of the AutoCAD application. (setq acadObj (vlax-get-acad-object)) (setq doc (vla-get-ActiveDocument acadObj)) ;; Use the "WindowState" variable to determine the window state of AutoCAD (setq CurrentState (cond ((= (vla-get-WindowState acadObj) acMin) "Minimized") ((= (vla-get-WindowState acadObj) acMax) "Maximized") ((= (vla-get-WindowState acadObj) acNorm) "Normal Size") )) ;; Display window state (alert (strcat "AutoCAD is now: " CurrentState)) )