Syntax |
Dim name As HWND |
|||
Description |
A data type used to hold window objects. |
|||
Comments |
This data type is used to hold references to physical windows in the operating environment. The following commands operate on HWND objects: |
|||
|
WinActivate |
WinClose |
WinFind |
WinList |
|
WinMaximize |
WinMinimize |
WinMove |
WinRestore |
|
WinSize |
|
|
|
|
The above language elements support both string and HWND window specifications. |
|||
Example |
This example activates the "Main" MDI window within Program Manager. Sub Main() Dim ProgramManager As HWND Dim ProgramManagerMain As HWND Set ProgramManager = WinFind("Program Manager") If ProgramManager Is Not Nothing Then WinActivate ProgramManager WinMaximize ProgramManager Set ProgramManagerMain = WinFind("Program Manager|Main") If ProgramManagerMain Is Not Nothing Then WinActivate ProgramManagerMain WinRestore ProgramManagerMain Else MsgBox "Your Program Manager doesn't have a Main group." End If Else MsgBox "Program Manager is not running." End If End Sub |
|||
See Also |
HWND.Value (property); WinFind (function); WinActivate (statement). |
|||
|
|
|
|
|
H |