X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7dab17dd7aa966d558733ada7edecb96a4f40a7a..780d7317eda90f5f2ac353f6b7a72142d4cd3180:/src/msw/ole/activex.cpp diff --git a/src/msw/ole/activex.cpp b/src/msw/ole/activex.cpp index d1722eeb64..991e7c9870 100644 --- a/src/msw/ole/activex.cpp +++ b/src/msw/ole/activex.cpp @@ -711,7 +711,10 @@ void wxActiveXContainer::CreateActiveX(REFIID iid, IUnknown* pUnk) ::SetActiveWindow(m_oleObjectHWND); ::ShowWindow(m_oleObjectHWND, SW_SHOW); - this->AssociateHandle(m_oleObjectHWND); + { + wxLogNull noLog; + this->AssociateHandle(m_oleObjectHWND); + } this->Reparent(m_realparent); wxWindow* pWnd = m_realparent; @@ -802,7 +805,11 @@ void wxActiveXContainer::OnPaint(wxPaintEvent& WXUNUSED(event)) posRect.right = w; posRect.bottom = h; +#if defined(_WIN32_WCE) && _WIN32_WCE < 400 + ::InvalidateRect(m_oleObjectHWND, NULL, false); +#else ::RedrawWindow(m_oleObjectHWND, NULL, NULL, RDW_INTERNALPAINT); +#endif RECTL *prcBounds = (RECTL *) &posRect; m_viewObject->Draw(DVASPECT_CONTENT, -1, NULL, NULL, NULL, (HDC)dc.GetHDC(), prcBounds, NULL, NULL, 0);