⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainfrm.cpp

📁 本书所附光盘的内容包含了开发实例的所有程序源码
💻 CPP
字号:
// MainFrm.cpp : CMainFrame 类的实现
//
#include "stdafx.h"
#include "Example.h"
#include "MainFrm.h"
#include "ExampleDoc.h"
#include "ExampleView.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif

// CMainFrame
IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd)
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
END_MESSAGE_MAP()

// CMainFrame 构造/销毁
CMainFrame::CMainFrame()
{
	// TODO:在此添加成员初始化代码
}

CMainFrame::~CMainFrame()
{
}

BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
	// TODO: 在此添加专用代码和/或调用基类
	CRect cr;
	GetClientRect(&cr);
	CSize paneSize(cr.Width()/3, cr.Height() /3);
	m_Splitter.CreateStatic(this,3,1);
	m_Splitter.CreateView(0,0,RUNTIME_CLASS(CExampleView),paneSize,pContext);
	m_Splitter.CreateView(1,0,RUNTIME_CLASS(CExampleView),paneSize,pContext);
	m_Splitter.CreateView(2,0,RUNTIME_CLASS(CExampleView),paneSize,pContext);
	return TRUE;
	//return CFrameWnd::OnCreateClient(lpcs, pContext);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -