Returns the rectangular coordinates of the view port in which the view is to be activated.
HRESULT GetRect(
LPRECT prcView |
// Pointer to the current view coordinates |
); |
Parameters
Return Value
Remarks
For an 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 an 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 returned by this method are those set in the last previous call to either IOleDocumentView::SetRect or IOleDocumentView::SetRectComplex.
A document view must implement this method completely. Therefore E_NOTIMPL is not an acceptable return value.
See Also
IOleDocumentView::SetRect, IOleDocumentView::SetRectComplex