lexliy / duilib

Automatically exported from code.google.com/p/duilib
1 stars 0 forks source link

win7下webbrowser控件 黑色底边网页时,拖动会很闪 #62

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
xp下未发现该问题

Original issue reported on code.google.com by CIEEHe...@gmail.com on 3 Nov 2012 at 9:50

GoogleCodeExporter commented 9 years ago
求大神解决这个问题啊,还没发现解决方法啊!

Original comment by LezardO...@gmail.com on 3 Apr 2013 at 3:10

GoogleCodeExporter commented 9 years ago
我认为是刷新的问题:没有及时刷新。
在如下函数添加UpdateWindow(m_pManager->GetPaintWindow());
应该就可以了
void CControlUI::NeedParentUpdate()
{
    if( GetParent() ) {
        GetParent()->NeedUpdate();
        GetParent()->Invalidate();
    }
    else {
        NeedUpdate();
    }

    if( m_pManager != NULL ) 
    {
        m_pManager->NeedUpdate();
        UpdateWindow(m_pManager->GetPaintWindow());
    }
}

Original comment by liu56358...@gmail.com on 17 Sep 2013 at 12:18