Contents Index Topic Contents | ||
Previous Topic: IFileViewer::Show Next Topic: IFileViewerSite |
IFileViewer::ShowInitialize
HRESULT ShowInitialize( LPFILEVIEWERSITE lpfsi );Allows a file viewer to determine whether it can display a file and, if it can, to perform initialization operations before showing the file.
- Returns NOERROR if successful, or an OLE-defined error value otherwise.
- lpfsi
- Address of an IFileViewerSite interface. A file viewer uses this interface to retrieve the handle to the current pinned window or to specify a new pinned window.
The shell calls this method before the IFileViewer::Show method. The shell specifies the name of the file to display by calling the file viewer's IPersistFile::Load method.
ShowInitialize must perform all operations that are prone to failure so that if it succeeds, IFileViewer::Show will not fail.
See also IFileViewer
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.