📄 bundleadjustview.cpp
字号:
// BundleAdjustView.cpp : implementation of the CBundleAdjustView class
//
#include "stdafx.h"
#include "BundleAdjust.h"
#include "BundleAdjustDoc.h"
#include "BundleAdjustView.h"
#include "BundleAdjustmentDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CBundleAdjustView
IMPLEMENT_DYNCREATE(CBundleAdjustView, CView)
BEGIN_MESSAGE_MAP(CBundleAdjustView, CView)
//{{AFX_MSG_MAP(CBundleAdjustView)
ON_COMMAND(ID_BUNDLEADJUST, OnBundleadjust)
//}}AFX_MSG_MAP
// Standard printing commands
ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CBundleAdjustView construction/destruction
CBundleAdjustView::CBundleAdjustView()
{
// TODO: add construction code here
}
CBundleAdjustView::~CBundleAdjustView()
{
}
BOOL CBundleAdjustView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CBundleAdjustView drawing
void CBundleAdjustView::OnDraw(CDC* pDC)
{
CBundleAdjustDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CBundleAdjustView printing
BOOL CBundleAdjustView::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CBundleAdjustView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CBundleAdjustView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CBundleAdjustView diagnostics
#ifdef _DEBUG
void CBundleAdjustView::AssertValid() const
{
CView::AssertValid();
}
void CBundleAdjustView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CBundleAdjustDoc* CBundleAdjustView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CBundleAdjustDoc)));
return (CBundleAdjustDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CBundleAdjustView message handlers
void CBundleAdjustView::OnBundleadjust()
{
// TODO: Add your command handler code here
CBundleAdjustmentDlg dlg;
dlg.DoModal();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -