COleServerDoc::GetZoomFactor

The GetZoomFactor member function determines the "zoom factor" of an item that has been activated for in-place editing.

BOOL GetZoomFactor( 
   LPSIZE lpSizeNum = NULL, 
   LPSIZE lpSizeDenom = NULL, 
   LPCRECT lpPosRect = NULL  
) const;

Parameters

  • lpSizeNum
    Pointer to an object of class CSize that will hold the zoom factor's numerator. Can be NULL.

  • lpSizeDenom
    Pointer to an object of class CSize that will hold the zoom factor's denominator. Can be NULL.

  • lpPosRect
    Pointer to an object of class CRect that describes the item's new position. If this argument is NULL, the function uses the item's current position.

Return Value

Nonzero if the item is activated for in-place editing and its zoom factor is other than 100% (1:1); otherwise 0.

Remarks

The zoom factor, in pixels, is the proportion of the item's size to its current extent. If the container application has not set the item's extent, its natural extent (as determined by COleServerItem::OnGetExtent) is used.

The function sets its first two arguments to the numerator and denominator of the item's "zoom factor." If the item is not being edited in place, the function sets these arguments to a default value of 100% (or 1:1) and returns zero. For further information, see Technical Note 40, MFC/OLE In-Place Resizing and Zooming.

Requirements

Header: afxole.h

See Also

Reference

COleServerDoc Class

Hierarchy Chart

COleServerDoc::GetItemPosition

COleServerDoc::GetItemClipRect

COleServerDoc::OnSetItemRects

Other Resources

COleServerDoc Members