IMathInputControl::GetPosition method (micaut.h)
Retrieves the position and size of the control.
Syntax
HRESULT GetPosition(
[out] LONG *Left,
[out] LONG *Top,
[out] LONG *Right,
[out] LONG *Bottom
);
Parameters
[out] Left
The leftmost position of the control.
[out] Top
The highest position of the control.
[out] Right
The rightmost position of the control.
[out] Bottom
The lowest position of the control.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
This method returns the control size and position even if the control is not visible.
This method returns the minimal possible width and height of the control if it is called immediately after creation of the control.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Target Platform | Windows |
Header | micaut.h (include Micaut.h) |