Skip to content

Commit

Permalink
Merge pull request #150 from kylixs/master
Browse files Browse the repository at this point in the history
Fixes ActiveX control invalidateWindow rect
  • Loading branch information
taxilian committed Feb 8, 2015
2 parents 3497ccf + 37345c5 commit 532f906
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/ActiveXCore/FBControl.h
Expand Up @@ -252,8 +252,15 @@ namespace FB {
boost::shared_ptr<FB::ShareableReference<CFBControlX> > ref(boost::make_shared<FB::ShareableReference<CFBControlX> >(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);
}
}
}
}

Expand Down

0 comments on commit 532f906

Please sign in to comment.