helper function can be used to draw objects more easily. You can use it
instead of calling IViewObject::Draw
| IUnknown * pUnk,
||//Points to the view object to be drawn
| DWORD dwAspect,
||//Specifies how the object is to be represented
| HDC hdcDraw,
||//Identifies the device context on which to draw
| LPCRECT lprcBounds
||//Specifies the rectangle in which the object is drawn
Points to the view object that is to be drawn.
Specifies how the object is to be represented. Representations include
content, an icon, a thumbnail, or a printed document. Valid values are taken from the
. See DVASPECT
for more information.
Specifies the device context on which to draw. Cannot be a metafile device
Points to a RECT
structure specifying the rectangle in which the object should be drawn. This
parameter is converted to a RECTL
structure and passed to IViewObject::Draw
Indicates object was successfully drawn.
Indicates one or more arguments are invalid.
Indicates ran out of memory.
Indicates there is no data to draw from.
Indicates the draw operation was aborted.
Indicates an error occurred in drawing.
Indicates the rectangle is invalid.
Indicates the object doesn't support the IViewObject
helper function calls the QueryInterface
method for the object specified (pUnk
), asking for an IViewObject
interface on that object. Then, OleDraw
converts the RECT
structure to a RECTL
structure, and calls IViewObject::Draw
Do not use OleDraw
to draw into a metafile because it does not specify the lprcWBounds
parameter required for drawing into metafiles.
- Software for developers
Software for Android Developers
- More information resources
Unix Manual Pages