📄 vc05view.cpp
字号:
// vc05View.cpp : implementation of the CVc05View class
//
#include "stdafx.h"
#include "vc05.h"
#include "vc05Doc.h"
#include "vc05View.h"
#include "vc05Dialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CVc05View
IMPLEMENT_DYNCREATE(CVc05View, CView)
BEGIN_MESSAGE_MAP(CVc05View, CView)
//{{AFX_MSG_MAP(CVc05View)
ON_COMMAND(ID_MENUITEM32771, OnMenuitem32771)
//}}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()
/////////////////////////////////////////////////////////////////////////////
// CVc05View construction/destruction
CVc05View::CVc05View()
{
// TODO: add construction code here
}
CVc05View::~CVc05View()
{
}
BOOL CVc05View::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
// 初始化对话框变量
m_vxm="";
m_vxl="";
m_vjl="";
m_vjg="";
m_vxb=0;
m_vnl=0;
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CVc05View drawing
void CVc05View::OnDraw(CDC* pDC)
{
CVc05Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CVc05View printing
BOOL CVc05View::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CVc05View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CVc05View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CVc05View diagnostics
#ifdef _DEBUG
void CVc05View::AssertValid() const
{
CView::AssertValid();
}
void CVc05View::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CVc05Doc* CVc05View::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CVc05Doc)));
return (CVc05Doc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CVc05View message handlers
void CVc05View::OnMenuitem32771()
{
int a1;
// TODO: Add your command handler code here
Cvc05Dialog ryda;
ryda.m_xm=m_vxm;
ryda.m_xl=m_vxl;
ryda.m_jl=m_vjl;
ryda.m_jg=m_vjg;
ryda.m_xb=m_vxb;
ryda.m_nl=m_vnl;
a1=ryda.DoModal();
if (a1 <= 1)
{
m_vxm=ryda.m_xm;
m_vxl=ryda.m_xl;
m_vjl=ryda.m_jl;
m_vjg=ryda.m_jg;
m_vxb=ryda.m_xb;
m_vnl=ryda.m_nl;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -