文件名称:MDIFrameBackground
- 所属分类:
- Windows编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 49kb
- 下载次数:
- 0次
- 提 供 者:
- kamal*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
To get this task done, my first instinct was to catch the WM_ERASEBKGND in CMainfr a me and do the FillSolidRect there. But I soon realized that approach didn t do anything other than make the fr a me flicker and show red only when it s being resized, otherwise the gray background was completely intact. Not exactly what I was looking for. Suddenly it became a little mystery. Why doesn t the background of the fr a me change when I fill it with a color in the fr a me s WM_ERASEBKGND handler? So I went on a hunt, I went through a lot of the CMDIfr a meWnd and Cfr a meWnd code looking for methods that would draw on the fr a me, and there was not much there. I finally ended up at CMainfr a me::OnCreate method, I set a breakpoint and stepped through the CMDIfr a meWnd::OnCreate method. After what seemed to be hours of searching I came across the following code in CMDIfr a meWnd::CreateClient:
(系统自动生成,下载前可以参看下载内容)
下载文件列表
MDIFrameBackground\ChildFrm.cpp
..................\ChildFrm.h
..................\ClientWnd.cpp
..................\ClientWnd.h
..................\MainFrm.cpp
..................\MainFrm.h
..................\MDIFrameBackground.cpp
..................\MDIFrameBackground.exe
..................\MDIFrameBackground.h
..................\MDIFrameBackground.rc
..................\MDIFrameBackground.sln
..................\MDIFrameBackground.vcproj
..................\MDIFrameBackgroundDoc.cpp
..................\MDIFrameBackgroundDoc.h
..................\MDIFrameBackgroundView.cpp
..................\MDIFrameBackgroundView.h
..................\ReadMe.txt
..................\res
..................\...\MDIFrameBackground.ico
..................\...\MDIFrameBackground.manifest
..................\...\MDIFrameBackground.rc2
..................\...\MDIFrameBackgroundDoc.ico
..................\...\Toolbar.bmp
..................\Resource.h
..................\stdafx.cpp
..................\stdafx.h
..................\ChildFrm.h
..................\ClientWnd.cpp
..................\ClientWnd.h
..................\MainFrm.cpp
..................\MainFrm.h
..................\MDIFrameBackground.cpp
..................\MDIFrameBackground.exe
..................\MDIFrameBackground.h
..................\MDIFrameBackground.rc
..................\MDIFrameBackground.sln
..................\MDIFrameBackground.vcproj
..................\MDIFrameBackgroundDoc.cpp
..................\MDIFrameBackgroundDoc.h
..................\MDIFrameBackgroundView.cpp
..................\MDIFrameBackgroundView.h
..................\ReadMe.txt
..................\res
..................\...\MDIFrameBackground.ico
..................\...\MDIFrameBackground.manifest
..................\...\MDIFrameBackground.rc2
..................\...\MDIFrameBackgroundDoc.ico
..................\...\Toolbar.bmp
..................\Resource.h
..................\stdafx.cpp
..................\stdafx.h