WindowHandle32 property

Microsoft Visio Developer Reference

WindowHandle32 property

       

Returns the 32-bit handle of a Microsoft Visio window.

Version added

4.0

Syntax

retVal = object.WindowHandle32

retVal

Long. The HWND of the object's window.

object

Required. An expression that returns an Application or Window object.

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.