CWnd::ValidateRect

移除个矩形验证在给定矩形内的工作区从窗口中更新区域。

void ValidateRect(
   LPCRECT lpRect 
);

参数

  • lpRect
    指向 CRect 包含从更新区域中移除该矩形工作区坐标的对象或 RECT 结构。如果 lpRect 是 NULL,整个窗口验证。

备注

BeginPaint 成员函数自动验证整个工作区。不应调用 ValidateRectValidateRgn 成员函数,如果更新区域的部分需要验证,在 WM_PAINT 接下来生成之前。

Windows继续生成 WM_PAINT 消息,直至当前更新区域验证。

要求

Header: afxwin.h

请参见

参考

CWnd 类

层次结构图

CWnd::BeginPaint

ValidateRect

CWnd::ValidateRgn