IInkCollector::SetWindowInputRectangle method (msinkaut.h)
Sets the window rectangle, in pixels, within which ink is drawn.
Syntax
HRESULT SetWindowInputRectangle(
[in] IInkRectangle *WindowInputRectangle
);
Parameters
[in] WindowInputRectangle
The rectangle, in window coordinates, on which ink is drawn.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
A parameter contained an invalid pointer. |
|
The rectangle coordinates are invalid (for example, width/height of 0). |
|
Cannot update mappings while in the middle of a stroke. |
|
An exception occurred inside the method. |
|
The window input rectangle overlaps with the window input rectangle of an enabled InkCollector. |
Remarks
The E_INK_OVERLAPPING_INPUT_RECT error is returned if the window input rectangle of an enabled ink collector (set with the Enabled property) overlaps the window input rectangle of another enabled ink collector.
To reset the window input rectangle to its default behavior (an empty rectangle with coordinates {0,0,0,0}), pass {0,0,0,0} in the call to SetWindowInputRectangle, and not NULL.
You cannot pass in a rectangle where the value of the Right property is less than the value of the Left property; or where the value of the Bottom property is less than the value of the Top property. For example, a rectangle with parameters of {500, 500, 400, 400} is not valid.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP Tablet PC Edition [desktop apps only] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | msinkaut.h |
Library | InkObj.dll |