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);
}
我有一个应用程序,其中有一个用于表单输入的模板。
由于页面上将有相同输入/标签的多个版本,因此输入 ID 不能被硬编码。
相反,我构建了一个用于绑定 attr 的函数('id' 用于输入,'for' 用于标签)。
这在 Chrome 和 IE9 中效果很好,但在 IE8 和 IE7 中失败。
我有一个标签和输入:<