Application.WindowHandle32 Property
Visio Automation Reference |
Returns the 32-bit handle of a Microsoft Office Visio window. Read-only.
Version Information
Version Added: Visio 4.0
Syntax
expression.WindowHandle32
expression A variable that represents an Application object.
Return Value
Long
Remarks
The WindowHandle32 property of an Application object returns one of the following:
- The HWND for the main Visio (frame) window (most common).
- The HWND for the container application's main frame window if Visio is running in-place and active.
- The HWND for the window returned by the GetActiveWindow() function if either frame window is disabled (for example, if a modal dialog box is running). For details about the GetActiveWindow function, see the Microsoft Platform SDK on the Microsoft Developer Network (MSDN) Web site.
Use the WindowHandle32 property of the Window object to obtain the HWND for a window in the Windows collection of a Visio instance.
You can use the obtained HWND in Windows API calls.
Note |
---|
Calls to the WindowHandle property (now hidden) are directed to the WindowHandle32 property. |
Example
This Microsoft Visual Basic for Applications (VBA) macro shows how to get the 32-bit handle of a window.
Visual Basic for Applications |
---|
|
See Also