Win32编程,让DC不重画某个区域的API函数

Win32编程,让DC不重画某个区域的API函数:ExcludeClipRect

描述:这个函数将创建一个新的区域,这个新的区域 由 现有的区域 去掉 指定区域 后 组成。

功能:可以让DC不刷新某个指定区域。

说明:这个函数在MFC中的CDC类里有封装。

int ExcludeClipRect(
    HDC hdc, // handle to DC
    int nLeftRect, // x-coord of upper-left corner
    int nTopRect, // y-coord of upper-left corner
    int nRightRect, // x-coord of lower-right corner
    int nBottomRect // y-coord of lower-right corner
);

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注