windows应用开发由浅入深(三)有关不规则窗口
来源:互联网 发布:linux vim 分页查看 编辑:程序博客网 时间:2024/05/21 10:10
相关类:
1、CRgn:Encapsulates a Windows graphics device interface (GDI) region.即、CRgn表示一个GDI封装区
MSDN描述:
A region is an elliptical or polygonal area within a window. To use regions, you use the member functions of classCRgn with the clipping functions defined as members of class CDC.
封装区是窗口的椭圆区域或者不规则区域。对封装区的所有操作,是通过CRgn的成员方法实现的,而CRgn是通过CDC类定义的裁剪方法得到的。
The member functions of CRgn create, alter, and retrieve information about the region object for which they are called.
CRgn的成员方法可创建、修改封装区,并可以检索封装区对象信息。
2、CRect:A CRect contains member variables that define the top-left and bottom-right points of a rectangle.这是用左上点坐标和右下点坐标表示的矩形工作区
相关函数:
1、GetWindowRect(): 获取表示矩形工作区区域的的CRect类。
2、CRgn.CreateRoundRectRgn(): Creates a rectangular region with rounded corners that is stored in theCRgn object.
创建圆角矩形封装区,参数是圆角的信息,存储进CRgn实例中。
3、SetWindowRgn(); Sets the window region of a window. 设置窗口的封装区域。
void CmainDlg::OnBnClickedOk(){// TODO: 在此添加控件通知处理程序代码CRect cRect;CRgn cRgn;GetWindowRect(&cRect);cRect -= cRect.TopLeft();cRgn.CreateRoundRectRgn(cRect.left,cRect.top,cRect.right,cRect.bottom,150,150);SetWindowRgn(cRgn,TRUE);}
- windows应用开发由浅入深(三)有关不规则窗口
- windows应用开发由浅入深(三)有关鼠标事件--设置鼠标点击测试值实现非标题栏拖动窗口
- windows应用开发由浅入深(二)有关控件的操作
- windows应用开发由浅入深(三)利用注册表将程序启动时窗口位置设置为上次关闭的位置
- windows应用开发由浅入深(一)MessageBox消息框
- windows应用开发由浅入深(一)AfxMessageBox消息框
- windows应用开发由浅入深(四)创建热键消息
- windows应用开发由浅入深(二)常用控件--滑块、标签、树形控件、列表控件
- windows应用开发由浅入深(二)常用控件--进度条、滚动条
- Socket 由浅入深,开发一个真正的通信应用(学习)
- windows编程中实现不规则窗口
- windows应用开发由浅入深(五)关于进程和线程--获取当前进程信息
- Windows桌面应用开发-什么是窗口
- WAVE 文件由浅入深(三)
- 不规则窗口
- 不规则窗口
- 自学QT之不规则窗口和不规则按钮(亲测)
- Windows下Core Audio APIS 音频应用开发(三 )
- 淘宝网的技术发展史(三)——分布式时代
- Cocos2d-x 创建精灵的五种方法
- vmware ESXI 上安装系统
- sqlserver 触发器
- Apache+JK+Tomcat 负载平衡配置
- windows应用开发由浅入深(三)有关不规则窗口
- 在异步加载 AsyncTask 中用动态的数组作为参数
- Spring定时器时间配置
- 利用AMD Media SDK处理视频
- iOS真机测试
- Objective-C函数速查实例手册随书黑苹果配置教程
- all about oracle ASM
- linux内核中的min、max函数
- Map Tile 地图切片小工具