Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNo next file
Objective Views User's Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

15.9 Rendering the Server Item

When the container application asks the server to render the document, the server invokes the virtual OnDraw() method in the COleServerItem class. The COleServerItem::OnDraw() takes a device context and a size parameter, and the device context is typically a metafile DC. The viewport contains a DrawMetafile() method that draws the contents of the model to a metafile. The DrawMetafile() method excludes the grid, page boundary lines, and selection handles from being drawn, since these are artifacts used to edit objects on the canvas.

Example 27: Rendering a server item



Previous fileTop of DocumentContentsNo linkNo next file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and Stingray, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.