Obtains the rectangular coordinates of the view port in which the view is or will be activated.
HRESULT GetRect(
  LPRECT prcView  // Pointer to the current view coordinates
);
 
For a single document interface (SDI) application, the view port is the client area of the frame window minus the space allocated for tool bars, 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 IOleDocumentView::SetRect or IOleDocumentView::SetRectComplex.
A document view must implement this method completely; E_NOTIMPL is not an acceptable return value.
  Windows NT: Use version 5.0 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in docobj.h.
IOleDocumentView::SetRect, IOleDocumentView::SetRectComplex