📄 glxtview.cpp
字号:
// glxtView.cpp : implementation of the CGlxtView class
//
#include "stdafx.h"
#include "glxt.h"
#include "glxtDoc.h"
#include "glxtView.h"
#include "shpxxDLG.h"
#include "dlDlg.h"
#include "gshxDlg.h"
#include "fpbDlg.h"
#include "fpxmxb.h"
#include "chxlbDlg.h"
#include "findDlg1.h"
#include "chkuDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CGlxtView
IMPLEMENT_DYNCREATE(CGlxtView, CView)
BEGIN_MESSAGE_MAP(CGlxtView, CView)
//{{AFX_MSG_MAP(CGlxtView)
ON_COMMAND(ID_FILE_GOODS, OnXSHGds)
ON_COMMAND(ID_FILE_ENTRY, OnEntryS)
ON_COMMAND(ID_FILE_PROVER, OnvProver)
ON_COMMAND(ID_EDIT_TKIPUT, OnTkfp)
ON_COMMAND(ID_EDIT_LBMAAGE, OnrukuG)
ON_COMMAND(ID_FILE_KIND, OnKind)
ON_COMMAND(ID_VIEW_GTYPE, OnViewGtype)
ON_COMMAND(ID_VIEW_PROVQ, OnViewProvq)
ON_COMMAND(ID_FILE_CBIT, OnFileCbit)
ON_COMMAND(ID_VIEW_MTDEPT, OnViewMtdept)
ON_COMMAND(ID_EDIT_OUTLBMAGE, OnEditOutlbmage)
//}}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()
/////////////////////////////////////////////////////////////////////////////
// CGlxtView construction/destruction
CGlxtView::CGlxtView()
{
// TODO: add construction code here
}
CGlxtView::~CGlxtView()
{
}
BOOL CGlxtView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CGlxtView drawing
void CGlxtView::OnDraw(CDC* pDC)
{
CGlxtDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
CDC MemDC;
MemDC.CreateCompatibleDC(NULL);
MemDC.SelectObject(pDoc->m_Bitmap);
pDC->BitBlt(0,0,pDoc->m_nWidth,pDoc->m_nHeight,&MemDC,0,0,SRCCOPY);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CGlxtView printing
BOOL CGlxtView::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CGlxtView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CGlxtView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CGlxtView diagnostics
#ifdef _DEBUG
void CGlxtView::AssertValid() const
{
CView::AssertValid();
}
void CGlxtView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CGlxtDoc* CGlxtView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CGlxtDoc)));
return (CGlxtDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CGlxtView message handlers
void CGlxtView::OnXSHGds()
{
// TODO: Add your command handler code here
CshpxxDLG dlg;
dlg.DoModal();
}
void CGlxtView::OnEntryS()
{
// TODO: Add your command handler code here
CdlDlg dlg;
dlg.DoModal();
}
void CGlxtView::OnvProver()
{
// TODO: Add your command handler code here
CgshxDlg dlg;
dlg.DoModal();
}
void CGlxtView::OnTkfp()
{
// TODO: Add your command handler code here
CfpbDlg dlg;
dlg.DoModal();
}
void CGlxtView::OnrukuG()
{
// TODO: Add your command handler code here
Cfpxmxb dlg;
dlg.DoModal();
}
void CGlxtView::OnKind()
{
// TODO: Add your command handler code here
}
void CGlxtView::OnViewGtype()
{
// TODO: Add your command handler code here
CchxlbDlg dlg;
dlg.DoModal();
}
void CGlxtView::OnViewProvq()
{
// TODO: Add your command handler code here
CfindDlg dlg;
dlg.DoModal();
}
void CGlxtView::OnFileCbit()
{
// TODO: Add your command handler code here
}
void CGlxtView::OnViewMtdept()
{
// TODO: Add your command handler code here
}
void CGlxtView::OnEditOutlbmage()
{
// TODO: Add your command handler code here
CchkuDlg dlg;
dlg.DoModal();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -