LOTUSSCRIPT LANGUAGE
All declarations are at the module level.
' Gets the handle of the active window. Declare Function GetActiveWindow Lib "User32" () As Long
' Gets the handle of the next window. Declare Function GetNextWindow Lib "User32" _ (ByVal hwnd As Long, _ ByVal uFlag As Long) As Long ' Windows constant for uFlag parameter: return the handle ' of the next(not the previous) window in the window ' manager's list. Const GW_HWNDNEXT =2
' Makes a window (identified by its handle) the active window. Declare Sub SetActiveWindow Lib "User32" (ByVal hwnd As Long)
' Gets the text in the window title bar. Declare Function GetWindowText Lib "User32" Alias "GetWindowTextA" _ (ByVal hwnd As Long, _ ByVal lpString As String,_ ByVal chMax As Long) As Long
' Sets the text in the window title bar. Declare Sub SetWindowText Lib "User32" Alias "SetWindowTextA" _ (ByVal hwnd As Long, _ ByVal lpString$)
See Also