BitmapWindow1

所属分类:Windows编程
开发工具:Visual C++
文件大小:162KB
下载次数:24
上传日期:2013-04-15 08:18:29
上 传 者xishixie422
说明:  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.)

文件列表:
BitmapWindow.cpp (6130, 2012-12-31)
BitmapWindow.opt (48640, 2012-12-27)
BitmapWindow.sln (889, 2012-12-27)
BitmapWindow.suo (10752, 2012-12-31)
BitmapWindow.vcproj (5624, 2012-12-27)
BitmapWindow.vcproj.DDD.Administrator.user (1403, 2012-12-31)
复件 BitmapWindow.cpp (6130, 2012-12-31)
Kitty.bmp (437984, 2003-03-24)

======================================================================== WIN32 APPLICATION : BitmapWindow ======================================================================== AppWizard has created this BitmapWindow application for you. This file contains a summary of what you will find in each of the files that make up your BitmapWindow application. BitmapWindow.cpp This is the main application source file. BitmapWindow.dsp This file (the project file) contains information at the project level and is used to build a single project or subproject. Other users can share the project (.dsp) file, but they should export the makefiles locally. ///////////////////////////////////////////////////////////////////////////// Other standard files: StdAfx.h, StdAfx.cpp These files are used to build a precompiled header (PCH) file named BitmapWindow.pch and a precompiled types file named StdAfx.obj. ///////////////////////////////////////////////////////////////////////////// Other notes: AppWizard uses "TODO:" to indicate parts of the source code you should add to or customize. /////////////////////////////////////////////////////////////////////////////

近期下载者

相关文件


收藏者