From 13e66cd09f0dd2c32a859abdc408dad7720b2777 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 3 Sep 2018 18:33:31 +0300 Subject: fixes #1567 (IEView shouldn't expose debug messages to user) --- plugins/IEView/src/IEView.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'plugins') diff --git a/plugins/IEView/src/IEView.cpp b/plugins/IEView/src/IEView.cpp index 480d6eb554..6db3d246c2 100644 --- a/plugins/IEView/src/IEView.cpp +++ b/plugins/IEView/src/IEView.cpp @@ -250,13 +250,10 @@ IEView::IEView(HWND _parent, HTMLBuilder *_builder, int x, int y, int cx, int cy pOleObject->SetClientSite(this); pOleObject->DoVerb(OLEIVERB_INPLACEACTIVATE, &msg, this, 0, this->parent, &rcClient); } - else MessageBox(nullptr, TranslateT("IID_IOleObject failed."), TranslateT("RESULT"), MB_OK); CComPtr pOleInPlace; if (SUCCEEDED(pWebBrowser.QueryInterface(&pOleInPlace))) pOleInPlace->GetWindow(&hwnd); - else - MessageBox(nullptr, TranslateT("IID_IOleInPlaceObject failed."), TranslateT("RESULT"), MB_OK); setBorder(); CComPtr pCPContainer; @@ -268,8 +265,7 @@ IEView::IEView(HWND _parent, HTMLBuilder *_builder, int x, int y, int cx, int cy // Step 3: Advise the connection point that you // want to sink its events. sink = new IEViewSink(this); - if (FAILED(m_pConnectionPoint->Advise(sink, &m_dwCookie))) - MessageBox(nullptr, TranslateT("Failed to Advise"), TranslateT("C++ Event Sink"), MB_OK); + m_pConnectionPoint->Advise(sink, &m_dwCookie); } } setMainWndProc((WNDPROC)SetWindowLongPtr(hwnd, GWLP_WNDPROC, (LONG_PTR)IEViewWindowProcedure)); @@ -304,8 +300,6 @@ IEView::~IEView() CComPtr pOleObject; if (SUCCEEDED(pWebBrowser.QueryInterface(&pOleObject))) pOleObject->SetClientSite(nullptr); - else - MessageBox(nullptr, TranslateT("IID_IOleObject failed."), TranslateT("RESULT"), MB_OK); if (builder != nullptr) { delete builder; -- cgit v1.2.3