::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;
posRect.right = w;
posRect.bottom = h;
-#if defined(__SMARTPHONE__) && defined(_WIN32_WCE) && _WIN32_WCE < 400
+#if defined(_WIN32_WCE) && _WIN32_WCE < 400
::InvalidateRect(m_oleObjectHWND, NULL, false);
#else
::RedrawWindow(m_oleObjectHWND, NULL, NULL, RDW_INTERNALPAINT);