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

15.8 Server Item OnGetExtent()

The container must be able to query the server for the size of the item. The COleServerItem::OnGetExtent() method is called when the container requests the size of the item. The size of the item is always expressed in MM_HIMETRIC units (0.01 millimeters per logic unit). The viewport contains a method to return its bounds in MM_HIMETRIC units. All you need to do is get the viewport, make sure it is sized to display the entire model, and then retrieve the size.

Example 26: OnGetExtent() method



Previous fileTop of DocumentContentsNo linkNext 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.