文件名称:BitmapWindow1
介绍说明--下载内容均来自于网络,请自行研究使用
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