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 );
- [out] pointer to variable that will hold selected window handle.
- [out] pointer to variable that will hold selected recatangle coordinates.
This method should be called in application after WM_SELECTION notification was received.
|S_OK||(0x00000000) Operation was completed successfully.|
|E_POINTER||(0x80004003) The hwnd or rect parameter is NULL.|