setWinldowRgn
CRgn(HRGN) SetWindowRgn setRgn{ CRgn rgnRect; CRgn rgnHole; //获取窗口大小 CRect rcWnd; GetWindowRect(&rcWnd); //创建区域 rgnRect.CreatRectRgn(0,22, rcWnd.Width(),
rWnd.Height()); rgnHole.CreateEllipticRgn(50, 50, 100, 100); //区域运算 rgnRect.CombineRgn(&rgnRect, &rgnHole, RGN_XOR); SetWindowRgn(rgnRect, TRUE); } setBmpRgn(int nID); {CClientDC dc(this); CBitmap bmp; bmp.LoadBitmap(nID);
CDC dcBmp; dcBmp.CreateCompatibleDC(&dc); CBitmap * pOldBmp = dcBmp.SelectObject(&bmp); CRect rcWnd; GetWindowRect(&rcWnd); //创建区域 rgnRect.CreatRectRgn(0,0, rcWnd.Width(),
rWnd.Height());
rgnRect.CreateRectRgn(nx, ny, nx+1, ny+1);
setWinldowRgn的更多相关文章
随机推荐
- oracle 查询最近执行过的 SQL语句(转载)
oracle 查询最近执行过的 SQL语句 (2014-06-09 18:02:43) 转载▼ 分类: Database oracle 查询最近执行过的 SQL语句 select sql_text ...
- Linux常用命令小结(续)
20. mysql mysql --host=127.0.0.1 --port=3306 --database=test --user=test --password=test --default-c ...
- jquery on和bind
1:bind():为每个匹配元素的特定事件绑定事件处理函数. bind(type,[data],fn) type: 含有一个或多个事件类型的字符串,由空格分隔多个事件. 比如"click&q ...
- msys2安装
最近在研究编译linux下的软件到windows环境中. 发现了一个比cygwin更好玩的东西,那就是msys2 其实之前也在试玩mingw和mingw64,2016-08-12,当时的最新版本,mi ...
- iOS解决NSData转NSString后字符为空
iOS中,将NSData转NSString的一般方法为[[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];但是当dat ...
- CI框架整合yar
第一步:在CI框架中libraries目录下建立yar.php 文件 内容: <?php /** * yar 接口 */ class Yar { /** * 构造函数 * * @return v ...
- 携程Ctrip DAL的学习1
携程Ctrip DAL的学习 1 本人net开发菜鸟,原理请自行看github的官网源码. 我这里是简单的使用(helloworld的水平). Ctrip DAL是携程框架部开发的数据库访问框架,支持 ...
- Mac上配置Privoxy
此文档适用于走Shadowsocks代理,想利用Privoxy将主机作为代理服务器的用户. 0.安装完Privoxy后,打开终端命令. 1.打开Privoxy的配置文件config: cd /usr/ ...
- php : 自定义分页类
Page.class.php : <?php namespace Tools; class Page { private $total; //数据表中总记录数 private $listRows ...
- 元素定义了position:fixed;后怎么居中
div{ position:fixed; width:1200px; margin:0 auto; top:0; bottom:0; left:0; right:0; }