文件名称:BitmapWindow1
-
所属分类:
- 标签属性:
- 上传时间:2013-04-15
-
文件大小:162.01kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
VC++异形窗口,示范了如何使用VC创建以图片为对话框形状的异形窗口,本款异形窗口在WM_ERASEBKGND消息中自贴图,实现的方法和原理:先创建一个无背影画刷窗口,然后在WM_CREATE中并指定透明颜色, 缩放位图后加载至s_hdcMem中,最后在WM_ERASEBKGND中用s_hdcMem贴图即可。
实现时需要缩放位图、得到窗口大孝创建与窗口大小相等且能容纳位图的HDC - s_hdcMem、将原位图缩放到窗口大校
按下Esc键时退出(关闭)窗口。-Profiled VC++ window, demonstrates how to use VC to Create Image dialog box shape profiled window, the models profiled window in WM_ERASEBKGND message from the map, implementation methods and principles: first, create a back brush window, then in WM_CREATE and specify the transparent color, scaling bitmap is loaded to s_hdcMem, last in WM_ERASEBKGND by s_hdcMem maps can be. Implementation need to be scaled bitmap (Close) window to get the window size, created equal to the size of the window and can accommodate bitmap HDC- s_hdcMem, the original bitmap scaling window Colonel pressing the Esc key to exit.
实现时需要缩放位图、得到窗口大孝创建与窗口大小相等且能容纳位图的HDC - s_hdcMem、将原位图缩放到窗口大校
按下Esc键时退出(关闭)窗口。-Profiled VC++ window, demonstrates how to use VC to Create Image dialog box shape profiled window, the models profiled window in WM_ERASEBKGND message from the map, implementation methods and principles: first, create a back brush window, then in WM_CREATE and specify the transparent color, scaling bitmap is loaded to s_hdcMem, last in WM_ERASEBKGND by s_hdcMem maps can be. Implementation need to be scaled bitmap (Close) window to get the window size, created equal to the size of the window and can accommodate bitmap HDC- s_hdcMem, the original bitmap scaling window Colonel pressing the Esc key to exit.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
BitmapWindow.cpp
BitmapWindow.opt
BitmapWindow.sln
BitmapWindow.suo
BitmapWindow.vcproj
BitmapWindow.vcproj.DDD.Administrator.user
复件 BitmapWindow.cpp
Kitty.bmp
ReadMe.txt
BitmapWindow.opt
BitmapWindow.sln
BitmapWindow.suo
BitmapWindow.vcproj
BitmapWindow.vcproj.DDD.Administrator.user
复件 BitmapWindow.cpp
Kitty.bmp
ReadMe.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.