📄 mainview.cpp
字号:
// MainView.cpp : implementation file
//
#include "stdafx.h"
#include "MyWork.h"
#include "MainView.h"
#include "pictureView.h"
#include "herbalattriView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// MainView
IMPLEMENT_DYNCREATE(MainView, CMiniFrameWnd)
MainView::MainView()
{
}
MainView::~MainView()
{
}
BEGIN_MESSAGE_MAP(MainView, CMiniFrameWnd)
//{{AFX_MSG_MAP(MainView)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// MainView message handlers
BOOL MainView::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
if (!m_wndSplitter1.CreateStatic(this,1,2))
{
MessageBox("Failed!");
return false;
}
m_wndSplitter1.CreateView(0,0,RUNTIME_CLASS(CherbalattriView),CSize(300,200),pContext);
m_wndSplitter1.CreateView(0,1,RUNTIME_CLASS(CpictureView),CSize(200,100),pContext);
return true;
return CMiniFrameWnd::OnCreateClient(lpcs, pContext);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -