From: Vadim Zeitlin Date: Sun, 27 Nov 2011 19:49:58 +0000 (+0000) Subject: Don't hide/show wxActiveXContainer when resizing it. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2d5779d44094cf386fce5cea2d7eb2ce4c5467f7 Don't hide/show wxActiveXContainer when resizing it. This results in bad flicker as can be seen with wxWebView or wxMediaCtrl and just doesn't seem to be necessary. Closes #13680. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/ole/activex.cpp b/src/msw/ole/activex.cpp index ca224480b6..dec49a768c 100644 --- a/src/msw/ole/activex.cpp +++ b/src/msw/ole/activex.cpp @@ -1184,8 +1184,6 @@ void wxActiveXContainer::OnSize(wxSizeEvent& event) // extents are in HIMETRIC units if (m_oleObject.IsOk()) { - m_oleObject->DoVerb(OLEIVERB_HIDE, 0, m_clientSite, 0, - (HWND)m_realparent->GetHWND(), &posRect); SIZEL sz = {w, h}; PixelsToHimetric(sz); @@ -1196,8 +1194,6 @@ void wxActiveXContainer::OnSize(wxSizeEvent& event) if (sz2.cx != sz.cx || sz.cy != sz2.cy) m_oleObject->SetExtent(DVASPECT_CONTENT, &sz); - m_oleObject->DoVerb(OLEIVERB_SHOW, 0, m_clientSite, 0, - (HWND)m_realparent->GetHWND(), &posRect); } if (m_oleInPlaceObject.IsOk())