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
This commit is contained in:
Vadim Zeitlin
2011-11-27 19:49:58 +00:00
parent b29bd6b44f
commit 2d5779d440

View File

@@ -1184,8 +1184,6 @@ void wxActiveXContainer::OnSize(wxSizeEvent& event)
// extents are in HIMETRIC units // extents are in HIMETRIC units
if (m_oleObject.IsOk()) if (m_oleObject.IsOk())
{ {
m_oleObject->DoVerb(OLEIVERB_HIDE, 0, m_clientSite, 0,
(HWND)m_realparent->GetHWND(), &posRect);
SIZEL sz = {w, h}; SIZEL sz = {w, h};
PixelsToHimetric(sz); PixelsToHimetric(sz);
@@ -1196,8 +1194,6 @@ void wxActiveXContainer::OnSize(wxSizeEvent& event)
if (sz2.cx != sz.cx || sz.cy != sz2.cy) if (sz2.cx != sz.cx || sz.cy != sz2.cy)
m_oleObject->SetExtent(DVASPECT_CONTENT, &sz); m_oleObject->SetExtent(DVASPECT_CONTENT, &sz);
m_oleObject->DoVerb(OLEIVERB_SHOW, 0, m_clientSite, 0,
(HWND)m_realparent->GetHWND(), &posRect);
} }
if (m_oleInPlaceObject.IsOk()) if (m_oleInPlaceObject.IsOk())