Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
4/8/2010

Gets the window rectangle, in pixels, within which ink is drawn for the IInkOverlaycontrol.

Syntax

HRESULT GetWindowInputRectangle (
	[out] IInkRectangle **windowRectangle
);

Parameters

windowRectangle

[out] Gets the rectangle, of type IInkRectangle, on which ink is drawn.

Return Value

HRESULT value Description

S_OK

Success.

E_POINTER

A parameter contains an invalid pointer.

REGDB_CLASSNOTREG

The IInkRectangleobject is not registered.

E_INK_EXCEPTION

An exception occurs inside the method.

Remarks

You must first allocate the rectangle before passing it on to this method.

By default, the window input rectangle is set to {0,0,0,0}. This default rectangle maps to the size of the entire window.

If you call GetWindowInputRectanglebefore you call the IInkOverlay::SetWindowInputRectanglemethod, this method gets a rectangle with the default coordinates.

Requirements

Header msinkaut.h
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile 6 Classic and later, Windows Mobile 6 Professional and later

See Also