⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rightpaneview.cpp

📁 这是一个能简单处理测量里面导线网平差的程序
💻 CPP
字号:
// RightPaneView.cpp : implementation file
//

#include "stdafx.h"
#include "demo_devstudio.h"
#include "RightPaneView.h"
#include "DaoxianView.h"
#include "BianJiView.h"
#include "Mainfrm.h"
#include "ChildFrm.h"

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

/////////////////////////////////////////////////////////////////////////////
// CRightPaneView

IMPLEMENT_DYNCREATE(CRightPaneView, CView)

CRightPaneView::CRightPaneView()
{
}

CRightPaneView::~CRightPaneView()
{
}


BEGIN_MESSAGE_MAP(CRightPaneView, CView)
	//{{AFX_MSG_MAP(CRightPaneView)
	ON_WM_CREATE()
	ON_WM_SIZE()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CRightPaneView drawing

void CRightPaneView::OnDraw(CDC* pDC)
{
	CDocument* pDoc = GetDocument();
	// TODO: add draw code here
}

/////////////////////////////////////////////////////////////////////////////
// CRightPaneView diagnostics

#ifdef _DEBUG
void CRightPaneView::AssertValid() const
{
	CView::AssertValid();
}

void CRightPaneView::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CRightPaneView message handlers

int CRightPaneView::OnCreate(LPCREATESTRUCT lpCreateStruct) 
{
	if (CView::OnCreate(lpCreateStruct) == -1)
		return -1;
	
	// TODO: Add your specialized creation code here
    m_wndSplitter.CreateStatic(this, 2, 1);

	CCreateContext *pContext = (CCreateContext*) lpCreateStruct->lpCreateParams;

	m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CBianJiView), CSize(80,0), pContext);
	m_wndSplitter.CreateView(1,0,RUNTIME_CLASS(CDaoxianView), CSize(0,0), pContext);
    CDaoxianView* p_daoxianview;
	p_daoxianview=(CDaoxianView*)m_wndSplitter.GetPane(1,0);
	p_daoxianview->m_pbianjiview=(CBianJiView*)m_wndSplitter.GetPane(0,0);
    CChildFrame* pfrm=(CChildFrame*)GetParentFrame();
	pfrm->m_bianjiview=(CBianJiView*)m_wndSplitter.GetPane(0,0);
	//TODO: Add your message handler code here
	return 0;
}

void CRightPaneView::OnSize(UINT nType, int cx, int cy) 
{
	CView::OnSize(nType, cx, cy);
	
	// TODO: Add your message handler code here
	if(this->IsWindowVisible())
	{
	m_wndSplitter.MoveWindow(-2,-2,cx+4,cy+4);
	m_wndSplitter.SetRowInfo(0, (cy*5)/6, 0);
	m_wndSplitter.SetRowInfo(1, 16, 16);
	m_wndSplitter.RecalcLayout();
	}
}

void CRightPaneView::OnInitialUpdate() 
{
	CView::OnInitialUpdate();
	
	// TODO: Add your specialized code here and/or call the base class
    ((CChildFrame*)GetParentFrame())->m_rightpaneview=this;
}

⌨️ 快捷键说明

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