摘要: 思路来自:MFC Tutorial - Creating a window with two classes在工程中新建一个类CChildFrameclass CChildFrame : public CFrameWnd在构造函数中:1 CChildFrame::CChildFrame()2 {3 Create(NULL,"MFC Tutorial Part 1 CoderSource Window");4 }可选:添加WM_PAINT消息: 1 void CChildFrame::OnPaint() 2 { 3 CPaintDC dc(this); // device c 阅读全文
posted @ 2013-01-03 23:41 SubmarineX 阅读(2939) 评论(0) 推荐(1) 编辑
摘要: Win32应用中创建多窗口,创建同一个窗口类的多个窗口对象和不同窗口类的窗口对象。 1 // win32_多窗口.cpp : Defines the entry point for the application. 2 // 3 4 #include "stdafx.h" 5 #include "resource.h" 6 7 #define MAX_LOADSTRING 100 8 9 // Global Variables: 10 HINSTANCE hInst; // current instance ... 阅读全文
posted @ 2013-01-03 20:36 SubmarineX 阅读(7241) 评论(0) 推荐(0) 编辑