IInkOverlay::DefaultDrawingAttributes
4/8/2010
Returns or sets the default drawing attributes to use when drawing and displaying ink in an IInkOverlay control.
Syntax
[propputref] HRESULT putref_DefaultDrawingAttributes ([in]
IInkDrawingAttributes *DefaultDrawingAttributes);
[propget] HRESULT get_DefaultDrawingAttributes ([out, retval]
IInkDrawingAttributes **DefaultDrawingAttributes
);
Parameters
DefaultDrawingAttributes
Returns or sets the default IInkDrawingAttributes object, 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 DefaultDrawingAttributes parameter must be a valid pointer to an IInkDrawingAttributes pointer. |
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::DrawingAttributes property. To change the drawing attributes of a collection of strokes, call the IInkStrokes::ModifyDrawingAttributes method.
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 |