Re: Repaint problem in IE
I have had simular problems, and have found that for COleControls that you have to overide the following:
DWORD CMyControl::GetControlFlags()
{
return COleControl::GetControlFlags() & ~(clipPaintDC | fastBeginPaint);
}
This is a documented BUG for VC 4.1 , 4.2, 5.0.
Re: Repaint problem in IE
I have solved it too. there is an documented bug in IE To solve it you must override an OnPaint method like this:
CPaintDC dc(this); // device context for painting
int cliprgnrect;
CRect rcClientRgn;
HRGN hrgnClipOut;
GetOuterWindow()->GetClientRect(&rcClientRgn);
hrgnClipOut = ::CreateRectRgn( rcClientRgn.left, rcClientRgn.top,rcClientRgn.right,rcClientRgn.bottom);
cliprgnrect = ::SetWindowRgn(GetOuterWindow()->m_hWnd, hrgnClipOut, TRUE);
COleControl::OnPaint(&dc);
You can find it on MSDN Q233391
with regards