IFileViewer::Show

【勇芳软件工作室】汉化HomePreviousNext

[Now Supported on Windows NT]

显示文件。

shell通过调用文件查看器的IPersistFile::Load成员函数来指定要显示的文件的名称。

IFileViewer::Show只有在IFileViewer::ShowInitialize未被调用时才会失败,在这种情况下返回值必须为E_UNEXPECTED。否则,IFileViewer::Show必须返回NOERROR。

HRESULT展(

IFileViewer FAR 【*pFileViewer】, 
LPFVSHOWINFO 【A file viewer can return information to the shell by modifying the members of the structure.】 
); 

参数

【pFileViewer】

IFileViewer界面的地址。在C ++中,此参数是隐式的。

【A file viewer can return information to the shell by modifying the members of the structure.】

包含文件查看器用于显示文件的信息的FVSHOWINFO结构的地址。文件查看器可以通过修改结构的成员将信息返回给shell。

返回值

如果在IFileViewer::Show之前未调用IFileViewer::ShowInitialize成员函数,则返回成功的NOERROR值或E_UNEXPECTED值。

也可以看看

IFileViewer