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

作者: 吴杰 分类: 编程 发布时间: 2009-11-24 10:21

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
);