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. |
Returns or sets the default drawing attributes to use when drawing and displaying ink in an IInkOverlaycontrol.
Syntax
[propputref] HRESULT putref_DefaultDrawingAttributes ([in] IInkDrawingAttributes *DefaultDrawingAttributes); [propget] HRESULT get_DefaultDrawingAttributes ([out, retval] IInkDrawingAttributes **DefaultDrawingAttributes ); |
Parameters
- DefaultDrawingAttributes
-
Returns or sets the default IInkDrawingAttributesobject, which specifies the drawing attributes that are used when drawing and displaying ink.
This property is read/write.
Return Value
HRESULT value | Description |
---|---|
S_OK |
Success. |
E_POINTER |
The DefaultDrawingAttributesparameter must be a valid pointer to an IInkDrawingAttributespointer. |
E_FAIL |
An unspecified error occurred. |
E_INK_EXCEPTION |
An exception occurred inside the method. |
Remarks
The drawing attributes specified with this property are the attributes that are assigned to a new cursor.
The default drawing attributes are as follows:
IInkDrawingAttributes::AntiAliased= TRUE
IInkDrawingAttributes::Color= BLACK(RGB(0,0,0)) if not in High Contrast mode; otherwise, Color=COLOR_WINDOWTEXT.
IInkDrawingAttributes::FitToCurve= FALSE
IInkDrawingAttributes::RasterOperation= CopyPen
IInkDrawingAttributes::Transparency= 0 (totally opaque)
IInkDrawingAttributes::Width= 53 (in ink space units)
To change the drawing attributes of a single stroke, use the IInkStrokeDisp::DrawingAttributesproperty. To change the drawing attributes of a collection of strokes, call the IInkStrokes::ModifyDrawingAttributesmethod.
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 |