Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IRealTimeStylus::Enabled property

Gets or sets a value that specifies whether the RealTimeStylus object collects tablet pen data.

This property is read/write.


HRESULT put_Enabled(
  [in]          BOOL fEnable

HRESULT get_Enabled(
  [out, retval] BOOL *pfEnable

Property value

TRUE to indicate that the RealTimeStylus object collects pen input; otherwise, FALSE. The default value is TRUE.

Error codes

For a description of the return values, see RealTimeStylus Classes and Interfaces.


Multiple RealTimeStylus objects can exist on the same window provided they are not enabled with overlapping window input rectangles. Enabled RealTimeStylus objects on the same window with overlapping input rectangles result in undetermined behavior.

Note  An overlap can occur without an error if only one of the input rectangles is enabled at any one time.

A child RealTimeStylus object must be connected to be enabled.

Although a RealTimeStylus object can be enabled when it has no plug-ins attached to it, it must have at least one plug-in to be useful.

You receive no events when an object is not enabled.

When the IRealTimeStylus::Enabled Property of a container control is set to false, all of its contained controls are also disabled.


Minimum supported client

Windows XP Tablet PC Edition [desktop apps only]

Minimum supported server

None supported


RTSCom.h (also requires RTSCom_i.c)



See also

IRealTimeStylus::AddCustomStylusDataToQueue Method
IRealTimeStylus::GetStyluses Method
IRealTimeStylus::GetTabletContextIdFromTablet Method
IRealTimeStylus::GetTabletFromTabletContextId Method
RealTimeStylus Class



Community Additions

© 2015 Microsoft