📄 sbtsplitter.cpp
字号:
// Sbtsplitter.cpp : implementation file
//
#include "stdafx.h"
#include "Ex07b.h"
#include "Sbtsplitter.h"
#include "SbtInput.h"
#include "Sbtlist.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSbtsplitter
IMPLEMENT_DYNCREATE(CSbtsplitter, CMDIChildWnd)
CSbtsplitter::CSbtsplitter()
{
}
CSbtsplitter::~CSbtsplitter()
{
}
BEGIN_MESSAGE_MAP(CSbtsplitter, CMDIChildWnd)
//{{AFX_MSG_MAP(CSbtsplitter)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSbtsplitter message handlers
BOOL CSbtsplitter::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
// return CMDIChildWnd::OnCreateClient(lpcs, pContext);
s_SplitterWnd.CreateStatic(this,1,2);
s_SplitterWnd.CreateView(0,0,
RUNTIME_CLASS(CSbtInput), CSize(250, 150), pContext);
s_SplitterWnd.CreateView(0,1,
RUNTIME_CLASS(CSbtlist), CSize(250, 0), pContext);
SetActiveView((CView*)s_SplitterWnd.GetPane(0,0));
return 1;
}
void CSbtsplitter::ActivateFrame(int nCmdShow)
{
// TODO: Add your specialized code here and/or call the base class
nCmdShow=SW_SHOWMAXIMIZED;
CMDIChildWnd::ActivateFrame(nCmdShow);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -