diff --git a/src/ActiveXCore/FBControl.h b/src/ActiveXCore/FBControl.h index c39dba5f..263f2884 100644 --- a/src/ActiveXCore/FBControl.h +++ b/src/ActiveXCore/FBControl.h @@ -252,8 +252,15 @@ namespace FB { boost::shared_ptr > ref(boost::make_shared >(this)); m_host->ScheduleOnMainThread(ref, boost::bind(&CFBControlX::invalidateWindow, this, left, top, right, bottom)); } else { - if (m_spInPlaceSite) - m_spInPlaceSite->InvalidateRect(NULL, TRUE); + if (m_spInPlaceSite){ + if(pluginWin){ + FB::Rect pos = pluginWin->getWindowPosition(); + RECT r = { left+pos.left, top+pos.top, right+pos.left, bottom+pos.top }; + m_spInPlaceSite->InvalidateRect(&r, FALSE); + }else { + m_spInPlaceSite->InvalidateRect(NULL, FALSE); + } + } } }