This commit is contained in:
leaf%mozilla.org 1999-11-22 01:08:36 +00:00
Родитель 76ebca28db
Коммит f05ff4b0e5
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -27,6 +27,7 @@
#include "MozillaControl.h"
#include "MozillaBrowser.h"
#include "IEHtmlDocument.h"
#include "nsIContentViewerFile.h"
static const TCHAR *c_szInvalidArg = _T("Invalid parameter");
static const TCHAR *c_szUninitialized = _T("Method called while control is uninitialized");
@ -294,7 +295,8 @@ LRESULT CMozillaBrowser::OnPrint(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL&
res = m_pIWebShell->GetContentViewer(&pContentViewer);
if ( NS_SUCCEEDED(res) )
{
pContentViewer->Print();
nsCOMPtr<nsIContentViewerFile> ContentViewerFile = do_QueryInterface(pContentViewer);
ContentViewerFile->Print();
NS_RELEASE(pContentViewer);
}
}