Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 CDialog 并且在 Dialog 内部有一个包含滚动条的 CWnd。我写了一个函数来处理滚动。当我滚动时,项目会变得模糊和重复。但是当我最小化并再次打开它时,一切似乎都很好。这会是什么原因????
在我覆盖 OnPaint() 方法后它起作用了。
void MyWnd::OnPaint() { CPaintDC oDC(this); CRect oRect; GetClientRect(oRect); CBrush oBrush(RGB(255, 255, 255)); oDC.FillRect(oRect, &oBrush);
}