登录
首页 » Visual C++ » MDIFrameBackground

MDIFrameBackground

于 2010-08-06 发布 文件大小:49KB
0 122
下载积分: 1 下载次数: 4

代码说明:

  To get this task done, my first instinct was to catch the WM_ERASEBKGND in CMainFrame and do the FillSolidRect there. But I soon realized that approach didn t do anything other than make the frame 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 frame change when I fill it with a color in the frame s WM_ERASEBKGND handler? So I went on a hunt, I went through a lot of the CMDIFrameWnd and CFrameWnd code looking for methods that would draw on the frame, and there was not much there. I finally ended up at CMainFrame::OnCreate method, I set a breakpoint and stepped through the CMDIFrameWnd::OnCreate method. After what seemed to be hours of searching I came across the following code in CMDIFrameWnd::CreateClient:

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 485373
    将BSTR类型转换成CString类型,VC++精选编程学习源码,很好的参考资料。(The BSTR CString type, VC++ select learning programming source code, a good reference.)
    2013-11-24 23:29:01下载
    积分:1
  • Skin5.0
    说明:  skin5.0 界面库,很不错的皮肤类,简单的一句代码就可以让你的程序更换皮肤(skin5.0 interface library, it is a good skin type, a simple code can make your skin replacement procedures)
    2009-07-30 20:07:24下载
    积分:1
  • AccessControl
    visual C++ 6.0关于access数据库编程,里面的类可以直接拿来用,非常方便
    2016-05-09 16:18:52下载
    积分:1
  • Chess
    三个机器人扫地,最短时间,用C++6.0编写,MFC界面,研究生课程作业,最优控制(Three robots sweeping the shortest time, with the C++6.0 writing, MFC interface, graduate course work, optimal control)
    2013-06-18 15:57:26下载
    积分:1
  • dianzicidian
    一个简单的电子词典,能实现中英互译,不带数据库(a simple dictionary without data library)
    2013-11-23 14:32:48下载
    积分:1
  • usb_20
    usb2.0协议相关文档,有助于程序开发,请参考上传得代码使用。(USB2.0 protocol-related documents, contribute to program development, please refer to upload a code to use.)
    2008-07-22 01:53:22下载
    积分:1
  • wenducaiji
    labwindows cvi设计的上位机温度采集系统(labwindows cvi)
    2015-04-29 19:19:16下载
    积分:1
  • MFC-ODBC-API-Programming
    本例是一个通讯实例,说明如何使用MFC ODBC 创建数据库应用程序。(This example is a communication example, explain how to use ODBC MFC to create a application.)
    2015-08-05 11:15:07下载
    积分:1
  • DatabaseFilter
    这是一个物流系统中将Access数据实时转换成sqlserver数据的程序。该程序可配置转换过程中的参数,以实现在转换中,添加,过滤等功能。对于做数据转换的朋友有很好的参考价值。(This is a logistics system will Access data in real-time data into sqlserver procedure. The program can be configured in the parameters of the conversion process to achieve change, add, filter functions. Do data conversion for a friend have a good reference value.)
    2009-01-09 13:28:54下载
    积分:1
  • Asntpclieentg
    基于SNTP协议的时间同步客户端的c代码。其中计算传输时间偏移和同步步误差都在客户端实现。可顺利移植到DSP上,用于网络时间同步需要的系统。 (SNTP protocol, time synchronization client c code. Calculated transmission time offset with step-by-step error in the client. Can be successfully transplanted to the DSP, the need for network time synchronization system.)
    2012-10-07 00:35:24下载
    积分:1
  • 696518资源总数
  • 104269会员总数
  • 42今日下载