OEM User's Guide
OEM External Specification
OEM User’s Guide—520330-001
A-50
Adapter Request API (OEM to Adapter)
FrameworkWindowPosition
The FrameworkWindowPosition method is used to allow the OEM Server to determine
the position and size of the main framework window. These values are subsequently
used by the OEM when performing window management functions.
Parameters
Left (output)
is the left position of the framework window. This value is returned to the OEM
Server.
Top (output)
is the top position of the framework window. This value is returned to the OEM
Server.
Width (output)
is the width of the framework window. This value is returned to the OEM Server.
Height (output)
is the height of the framework window. This value is returned to the OEM Server.
Return Value
•
0 if the adapter accepted the request
•
Non-zero if the adapter cannot accept the request
Consideration
If the adapter cannot obtain the size or position of the framework window, it should set
each of the parameters to -1 and return a non-zero value.
Example
Dim Adapter As New EMAdapterClass
Dim RC As Integer
Dim Left As Single
Dim Top As Single
Dim Width As Single
Dim Height As Single
RC = Adapter.FrameworkPosition(Left, Top, Width, Height)
Function FrameworkWindowPosition(Left As Single, Top As
Single, Width As Single, Height As Single) As Integer