rightpane.cpp

来自「AliEditor_Source code」· C++ 代码 · 共 82 行

CPP
82
字号
// RightPane.cpp : implementation file
//

#include "stdafx.h"
#include "AliEditor.h"
#include "RightPane.h"
#include "SwitchView.h"
#include "AliEditorView.h"


#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CRightPane

IMPLEMENT_DYNCREATE(CRightPane, CFrameWnd)

CRightPane::CRightPane()
{
}

CRightPane::~CRightPane()
{
}


BEGIN_MESSAGE_MAP(CRightPane, CFrameWnd)
	//{{AFX_MSG_MAP(CRightPane)
	ON_WM_SIZING()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CRightPane message handlers

BOOL CRightPane::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) 
{
	// TODO: Add your specialized code here and/or call the base class
	BOOL bCreate = m_split.CreateStatic(this, 2, 1);

	m_split.CreateView(0, 0, RUNTIME_CLASS(CSwitchView), CSize(200, 30), pContext);
	//m_split.CreateView(1, 0, RUNTIME_CLASS(CBackDropView), CSize(200, 30), NULL);
	m_split.CreateView(1, 0, RUNTIME_CLASS(CAliEditorView), CSize(200, 30), NULL);
	return bCreate;
	//return CFrameWnd::OnCreateClient(lpcs, pContext);
}

//CBackDropView *CRightPane::GetBackDropView()
//{
//	return (CBackDropView*)m_split.GetPane(1, 0);
//}

CAliEditorView *CRightPane::GetEditorView()
{
	//CBackDropView *pBackView = (CBackDropView *)m_split.GetPane(1, 0);
	//return (pBackView->GetAliEditorView());
	return (CAliEditorView *)m_split.GetPane(1, 0);
}

//CDlgFavoriteEdit *CRightPane::GetFavoriteEditView()
//{
//	CBackDropView *pBackView = (CBackDropView *)m_split.GetPane(1, 0);
//	return (pBackView->GetFavoriteEditView());
//}

CSwitchView *CRightPane::GetSwitchView()
{
	return (CSwitchView *)m_split.GetPane(0, 0);
}

void CRightPane::OnSizing(UINT fwSide, LPRECT pRect) 
{
	CFrameWnd::OnSizing(fwSide, pRect);
	
	// TODO: Add your message handler code here
	
}

⌨️ 快捷键说明

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