📄 bmpchildframe.cpp
字号:
// BMPChildFrame.cpp : implementation file
//
#include "stdafx.h"
#include "Example.h"
#include "BMPChildFrame.h"
#include "BMPDataView.h"
#include "BMPView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CBMPChildFrame
IMPLEMENT_DYNCREATE(CBMPChildFrame, CMDIChildWnd)
CBMPChildFrame::CBMPChildFrame()
{
}
CBMPChildFrame::~CBMPChildFrame()
{
}
BEGIN_MESSAGE_MAP(CBMPChildFrame, CMDIChildWnd)
//{{AFX_MSG_MAP(CBMPChildFrame)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CBMPChildFrame message handlers
BOOL CBMPChildFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
CRect rect;
GetClientRect(&rect);
m_wndSplitter.CreateStatic(this,1,2);
m_wndSplitter.CreateView(0,0,pContext->m_pNewViewClass,CSize(rect.right/2,0),pContext);
// m_wndSplitter1.CreateStatic(&m_wndSplitter,2,1,WS_CHILD|WS_VISIBLE,m_wndSplitter.IdFromRowCol(0,1));
// m_wndSplitter1.CreateView(0,0,RUNTIME_CLASS(CBMPView),CSize(0,rect.bottom/2),pContext);
m_wndSplitter.CreateView(0,1,RUNTIME_CLASS(CBMPDataView),CSize(0,0),pContext);
m_wndSplitter.SetActivePane(0,0);
return true;
//return CMDIChildWnd::OnCreateClient(lpcs, pContext);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -