文件名称:NonRect
- 所属分类:
- 界面编程
- 资源属性:
- [C/C++] [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 25kb
- 下载次数:
- 0次
- 提 供 者:
- madud*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
VC++非矩形窗体(四角为弧形)的代码实例,像一些音乐播放器的窗体、一些游戏的窗体等,除了把角变为弧形外,还有圆角、椭圆窗体和不规则窗体,我的实现过程是设置对话框的背景为 “TRANSPARENT”(透明),并在WM_CTLCOLORDLG消息处理器中创建一支“空笔”(NULL)来绘制对话框背景,然后用TransparenBlt将自己的位图放到对话框上。
-VC++ non-rectangular form (four corners of the arc) of the code examples, like some form music player, some games and other forms, in addition to angle into a curved, there are rounded corners, oval form and not Rules of the form, I realize the process is to set the dialog background " TRANSPARENT" (transparent), and the message processor WM_CTLCOLORDLG create a " space pen" (NULL) to draw the background of the dialog box, and then TransparenBlt itself the bitmap into the dialog box.
-VC++ non-rectangular form (four corners of the arc) of the code examples, like some form music player, some games and other forms, in addition to angle into a curved, there are rounded corners, oval form and not Rules of the form, I realize the process is to set the dialog background " TRANSPARENT" (transparent), and the message processor WM_CTLCOLORDLG create a " space pen" (NULL) to draw the background of the dialog box, and then TransparenBlt itself the bitmap into the dialog box.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
View.h
View.cpp
StdAfx.h
StdAfx.cpp
Resource.h
nonrect.rc
NonRect.mak
NonRect.h
NonRect.dsw
NonRect.dsp
NonRect.dep
NonRect.cpp
nonrect.aps
NonRect.001
makefile
MainFrm.h
MainFrm.cpp
Doc.h
Doc.cpp
RES\app.ico
...\app.rc2
...\Toolbar.bmp
RES
View.cpp
StdAfx.h
StdAfx.cpp
Resource.h
nonrect.rc
NonRect.mak
NonRect.h
NonRect.dsw
NonRect.dsp
NonRect.dep
NonRect.cpp
nonrect.aps
NonRect.001
makefile
MainFrm.h
MainFrm.cpp
Doc.h
Doc.cpp
RES\app.ico
...\app.rc2
...\Toolbar.bmp
RES