文件名称:dfgdfgd
介绍说明--下载内容均来自于网络,请自行研究使用
还有就是这个函数对于有标题框的窗体支持不好,就是它裁切的只是客户区域,好在我们要制作透明窗体的场合一般用不到标题框下面就说名例程的制作过程。(我旨在说明这种透明窗体的思路及函数的用法,所以代码非常简单,并且没有必要的错误验证机制,希望大家谅解)
建立一张用于在窗体上绘制的背景图片,把要裁切的部分用一种颜色标记出来,我们叫它MaskColor,例如图片背景是绿色则MaskColor =0xFF00,也就是 RGB(0,255,0).
建立一个基于对话框的工程,修改对话框资源的属性,主要修改两个地方。一是指定没有TitleBar,二是指定BorderStyle为None.这样才能保证出来的窗体符合你的要求
把图片加入资源,付ID = IDB_BACKGROUND-There is the function box for the title of the form to support the poor is that it is cutting Guest region, Fortunately we have to create a transparent form of the occasion in general less than the title of the box says the following of the production process of routine . (I intended to illustrate the idea of a transparent form and function of usage, so the code is very simple, and there is no need for a mechanism to verify the error, I hope you understand)
The establishment of a form on the drawing for the background picture, the need to cut some marked with a color, we call it MaskColor, for example, green is the background picture MaskColor = 0xFF00, that is RGB (0,255,0) .
The establishment of a project based on the dialog box, modify the properties dialog box resources, major changes in two places. First, there is no designated TitleBar, Second BorderStyle designated for None. So as to ensure that out of line with your request form
The picture by adding the resources to pay
建立一张用于在窗体上绘制的背景图片,把要裁切的部分用一种颜色标记出来,我们叫它MaskColor,例如图片背景是绿色则MaskColor =0xFF00,也就是 RGB(0,255,0).
建立一个基于对话框的工程,修改对话框资源的属性,主要修改两个地方。一是指定没有TitleBar,二是指定BorderStyle为None.这样才能保证出来的窗体符合你的要求
把图片加入资源,付ID = IDB_BACKGROUND-There is the function box for the title of the form to support the poor is that it is cutting Guest region, Fortunately we have to create a transparent form of the occasion in general less than the title of the box says the following of the production process of routine . (I intended to illustrate the idea of a transparent form and function of usage, so the code is very simple, and there is no need for a mechanism to verify the error, I hope you understand)
The establishment of a form on the drawing for the background picture, the need to cut some marked with a color, we call it MaskColor, for example, green is the background picture MaskColor = 0xFF00, that is RGB (0,255,0) .
The establishment of a project based on the dialog box, modify the properties dialog box resources, major changes in two places. First, there is no designated TitleBar, Second BorderStyle designated for None. So as to ensure that out of line with your request form
The picture by adding the resources to pay
相关搜索: 背景图片
(系统自动生成,下载前可以参看下载内容)
下载文件列表
dfgdfgd.doc