WINDOWS下,让DC不重画某个区域的API函数

来源:互联网 发布:淘宝客服好干吗 编辑:程序博客网 时间:2024/06/05 16:17

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

);

原创粉丝点击