Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Modifies the mode for RealTimeStylus Class (RTS) object to collect input from only one tablet object representing a digitizer attached to the Tablet PC. Stylus input from other digitizers is ignored by the RealTimeStylus.
Syntax
HRESULT SetSingleTabletMode(
[in] IInkTablet *piTablet
);
Parameters
[in] piTablet
The IInkTablet Interface object that represents the digitizer device attached to the Tablet PC.
Return value
For a description of the return values, see RealTimeStylus Classes and Interfaces.
Remarks
A RealTimeStylus Class can be set to one of two tablet-related modes:
- All tablets mode (default)
- Single tablet mode
Examples
The following C++ example code sets a IRealTimeStylus object, g_pRealTimeStylus, to single tablet mode so it can get the tablet and retrieve its plug-and-play identifier. Then it sets the IRealTimeStylus object back to all tablets mode.
// Must be in single tablet mode for GetTablet to succeed. This call to
// SetSingleTabletMode() would likely happen somewhere else in the app.
if (SUCCEEDED(g_pRealTimeStylus->SetSingleTabletMode(pInkTablet)))
{
IInkTablet* pTablet = NULL;
if ((SUCCEEDED(g_pRealTimeStylus->GetTablet(&pTablet))) && (NULL != pTablet))
{
BSTR bstrPnPID;
if (SUCCEEDED(pTablet->get_PlugAndPlayId(&bstrPnPID)))
{
TRACE("The tablet's Plug-n-Play ID is: %s\n", bstrPnPID);
}
}
// Restore all tablets mode.
g_pRealTimeStylus->SetAllTabletsMode(TRUE);
}
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows XP Tablet PC Edition [desktop apps only] |
| Minimum supported server | None supported |
| Target Platform | Windows |
| Header | rtscom.h |
| DLL | RTSCom.dll |