다음을 통해 공유


COleServerDoc::GetItemClipRect

Call the GetItemClipRect member function to get the clipping-rectangle coordinates of the item that is being edited in place.

void GetItemClipRect(
   LPRECT lpClipRect 
) const;

Parameters

  • lpClipRect
    Pointer to a RECT structure or a CRect object to receive the clipping-rectangle coordinates of the item.

Remarks

Coordinates are in pixels relative to the container application window's client area.

Drawing should not occur outside the clipping rectangle. Usually, drawing is automatically restricted. Use this function to determine whether the user has scrolled outside the visible portion of the document; if so, scroll the container document as needed by means of a call to ScrollContainerBy.

Requirements

Header: afxole.h

See Also

Reference

COleServerDoc Class

Hierarchy Chart

COleServerDoc::GetItemPosition

COleServerDoc::ScrollContainerBy

Other Resources

COleServerDoc Members