Retrieves the last selected window handle and rectangle in screen coordinates.
[C/C++]
HRESULT GetSelection(
INT_PTR* hwnd,
tagRECT* rect
);
[Visual Basic]
object.GetSelection(
ByRef hwnd As INT_PTR,
ByRef rect As tagRECT
)
[C#]
void ITextGRABSDK.GetSelection(
ref INT_PTR hwnd,
ref tagRECT rect
);
Parameters
- hwnd
- [out] pointer to variable that will hold selected window handle.
- rect
- [out] pointer to variable that will hold selected recatangle coordinates.
Remarks
This method should be called in application after WM_SELECTION notification was received.
Return Value(s)
| Return Value(s) | Definitions |
|---|---|
| S_OK | (0x00000000) Operation was completed successfully. |
| E_FAIL | (0x80004005) Error. |
| E_POINTER | (0x80004003) The hwnd or rect parameter is NULL. |