?? splitterframe.cpp
字號:
// SplitterFrame.cpp : implementation file
//
#include "stdafx.h"
#include "Ex07b.h"
#include "SplitterFrame.h"
#include "Ex07bView.h"
#include "ScrollView.h"
#include "ChildFrm.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSplitterFrame
IMPLEMENT_DYNCREATE(CSplitterFrame, CMDIChildWnd)
CSplitterFrame::CSplitterFrame()
{
}
CSplitterFrame::~CSplitterFrame()
{
}
BEGIN_MESSAGE_MAP(CSplitterFrame, CMDIChildWnd)
//{{AFX_MSG_MAP(CSplitterFrame)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSplitterFrame message handlers
BOOL CSplitterFrame::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(CEx07bScrollView), CSize(250, 150), pContext); //CEx07bView CEx07bScrollView
s_SplitterWnd.CreateView(0,1,
RUNTIME_CLASS(CEx07bView), CSize(250, 0), pContext);
SetActiveView((CView*)s_SplitterWnd.GetPane(0,0));
return 1;
}
BOOL CSplitterFrame::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Add your specialized code here and/or call the base class
// cs.style!=WS_MAXIMIZE;
// cs.style=WS_MAXIMIZE;
return CMDIChildWnd::PreCreateWindow(cs);
}
void CSplitterFrame::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 + -