64 ビット システムで、ウィンドウ フレームのウィンドウ ハンドルを取得します。(旧式)
サポートされているプラットフォーム: Windows のみ
読み込み専用: はい
タイプ: 長整数型
ウィンドウ フレームのハンドル。
追加の注意はありません。
VBA:
Sub Example_HWND32()
' This example returns the handle (Hwnd32) of a document window. The handle can be
' used with WindowsAPI calls, or with ActiveX components that require a handle
' to a window.
' If there are no open documents, then exit
If Documents.Count = 0 Then
MsgBox "There are no open documents!"
Exit Sub
End If
MsgBox "The HWND32 of the active document is: " & ActiveDocument.HWND32
End Sub
Visual LISP:
(vl-load-com)
(defun c:Example_HWND32()
;; This example returns the handle (Hwnd32) of a document window. The handle can be
;; used with WindowsAPI calls, or with ActiveX components that require a handle
;; to a window.
(setq acadObj (vlax-get-acad-object))
(setq doc (vla-get-ActiveDocument acadObj))
(alert (strcat "The HWND32 of the active document is: " (itoa (vla-get-HWND32 doc))))
)