Instruction Manual

OEM External Specification
OEM User’s Guide520330-001
A-33
Client Callback API (OEM to Client Application)
WindowState
The WindowState method should be implemented by the client application as a pair of
property procedures: Property Get (read) and Property Let (write). The OEM Gateway
retrieves this value to determine the current state (normal, minimized, maximized) of the
client’s display window and also sets the state of the window when requested by the
user.
Property Get WindowState
Parameters
None
Return Value
The current state of the client application’s display window, corresponding to standard
VB window state constants (vbNormal, vbNormal, vbMaximized, vbMinimized)
Considerations
This property is used by the OEM Gateway when the user or framework has invoked a
window management function (for example, Minimize All or Restore All).
The client application determines the window for which it will return data. It might be
the main window for the application, or it might be a subordinate window that is
responsible for displaying information relevant to the framework or callback object.
If the client application’s WindowManagementEnabled function returns False, this
property is not used by the OEM.
Example
Dim WS As Integer
' ClientCallbackObject was passed in a Popup.Add or Object.Add
call
WS = ClientCallbackObject.WindowState
Property Let WindowState
Parameters
vNewValue (input)
is the new window state.
Property Get WindowState() As Integer
Property Let WindowState(vNewValue)