IOleDocumentView::GetRectIOleDocumentView::GetRect*
*Contents  *Index  *Topic Contents
*Previous Topic: IOleDocumentView::GetInPlaceSite
*Next Topic: IOleDocumentView::Open

IOleDocumentView::GetRect

HRESULT GetRect(
    LPRECT prcView
   );

Retrieves the rectangular coordinates of the view port in which the view is or will be activated.

prcView
[out] Address of a RECT structure that receives the coordinates of the current view port.

For a single document interface (SDI) application, the view port is the client area of the frame window minus the space allocated for toolbars, status bar, and such. For a multiple document interface (MDI) window, the view port is the client area of the MDI document window minus any other frame-level user-interface elements.

The view port coordinates obtained by this method are those set in the most recent call to either the IOleDocumentView::SetRect or IOleDocumentView::SetRectComplex method.

A document view must implement this method completely; E_NOTIMPL is not an acceptable return value.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.