www.pudn.com > Digihelper.rar > DigihelperView.cpp


// DigihelperView.cpp : implementation of the CDigihelperView class 
// 
 
#include "stdafx.h" 
#include "Digihelper.h" 
 
#include "DigihelperDoc.h" 
#include "DigihelperView.h" 
#include "BQDlg.h" 
#include "jtohDlg.h" 
#include "htojDlg.h" 
#include "bzhDlg.h" 
#include "ddtokjDlg.h" 
#include "cetoshiDlg.h" 
#include "shitoceDlg.h" 
#include "ij1Dlg.h" 
#include "ij2Dlg.h" 
#include "ijjsDlg.h" 
#include "gcspDlg.h" 
#include "qlgcDlg.h" 
#include "2cDlg.h" 
#include "spzbcDlg.h" 
#include "frontDlg.h" 
#include "rjjsDlg.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CDigihelperView 
 
IMPLEMENT_DYNCREATE(CDigihelperView, CView) 
 
BEGIN_MESSAGE_MAP(CDigihelperView, CView) 
	//{{AFX_MSG_MAP(CDigihelperView) 
	ON_COMMAND(ID_BanBOX, OnBanBOX) 
	ON_COMMAND(ID_MENUITEM32778, OnMenuitem32778) 
	ON_COMMAND(ID_MENUITEM32779, OnMenuitem32779) 
	ON_COMMAND(ID_MENUITEM32780, OnMenuitem32780) 
	ON_COMMAND(ID_MENUITEM32774, OnMenuitem32774) 
	ON_COMMAND(ID_MENUITEM32776, OnMenuitem32776) 
	ON_COMMAND(ID_MENUITEM32777, OnMenuitem32777) 
	ON_COMMAND(ID_MENUITEM32787, OnMenuitem32787) 
	ON_COMMAND(ID_MENUITEM32788, OnMenuitem32788) 
	ON_COMMAND(ID_MENUITEM32789, OnMenuitem32789) 
	ON_COMMAND(ID_MENUITEM32790, OnMenuitem32790) 
	ON_COMMAND(ID_MENUITEM32791, OnMenuitem32791) 
	ON_COMMAND(ID_MENUITEM32792, OnMenuitem32792) 
	ON_COMMAND(ID_MENUITEM32793, OnMenuitem32793) 
	ON_COMMAND(ID_MENUITEM32797, OnMenuitem32797) 
	ON_COMMAND(ID_MENUITEM32803, OnMenuitem32803) 
	//}}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() 
 
///////////////////////////////////////////////////////////////////////////// 
// CDigihelperView construction/destruction 
 
CDigihelperView::CDigihelperView() 
{ 
	// TODO: add construction code here 
 
} 
 
CDigihelperView::~CDigihelperView() 
{ 
} 
 
BOOL CDigihelperView::PreCreateWindow(CREATESTRUCT& cs) 
{ 
 
   
   	return CView::PreCreateWindow(cs); 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// CDigihelperView drawing 
 
void CDigihelperView::OnDraw(CDC* pDC) 
{ 
	CDigihelperDoc* pDoc = GetDocument(); 
	ASSERT_VALID(pDoc); 
	// TODO: add draw code for native data here 
	CBitmap bitmap; 
	bitmap.LoadBitmap(IDB_BITMAP1); 
	CDC MemDC; 
	MemDC.CreateCompatibleDC(pDC); 
	CBitmap *pOldBitmap=MemDC.SelectObject(&bitmap); 
	BITMAP bm; 
	bitmap.GetBitmap(&bm); 
	pDC->BitBlt(0,0,bm.bmWidth,bm.bmHeight,&MemDC,0,0,SRCCOPY); 
	MemDC.SelectObject(pOldBitmap); 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// CDigihelperView printing 
 
BOOL CDigihelperView::OnPreparePrinting(CPrintInfo* pInfo) 
{ 
	// default preparation 
	return DoPreparePrinting(pInfo); 
} 
 
void CDigihelperView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) 
{ 
	// TODO: add extra initialization before printing 
} 
 
void CDigihelperView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) 
{ 
	// TODO: add cleanup after printing 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// CDigihelperView diagnostics 
 
#ifdef _DEBUG 
void CDigihelperView::AssertValid() const 
{ 
	CView::AssertValid(); 
} 
 
void CDigihelperView::Dump(CDumpContext& dc) const 
{ 
	CView::Dump(dc); 
} 
 
CDigihelperDoc* CDigihelperView::GetDocument() // non-debug version is inline 
{ 
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CDigihelperDoc))); 
	return (CDigihelperDoc*)m_pDocument; 
} 
#endif //_DEBUG 
 
///////////////////////////////////////////////////////////////////////////// 
// CDigihelperView message handlers 
 
void CDigihelperView::OnBanBOX()  
{ 
	// TODO: Add your command handler code here 
    CBQDlg dlg; 
	dlg.DoModal(); 
	 
} 
 
void CDigihelperView::OnMenuitem32778()  
{ 
	// TODO: Add your command handler code here 
	CjtohDlg dlg; 
	dlg.DoModal(); 
	 
} 
 
void CDigihelperView::OnMenuitem32779()  
{ 
	// TODO: Add your command handler code here 
	ChtojDlg dlg; 
	dlg.DoModal(); 
} 
 
void CDigihelperView::OnMenuitem32780()  
{ 
	// TODO: Add your command handler code here 
	CbzhDlg dlg; 
	dlg.DoModal(); 
} 
 
void CDigihelperView::OnMenuitem32774()  
{ 
	// TODO: Add your command handler code here 
	CddtokjDlg dlg; 
	dlg.DoModal(); 
} 
 
void CDigihelperView::OnMenuitem32776()  
{ 
	// TODO: Add your command handler code here 
	CcetoshiDlg dlg; 
dlg.DoModal(); 
} 
 
void CDigihelperView::OnMenuitem32777()  
{ 
 CshitoceDlg dlg; 
   dlg.DoModal();	 
} 
 
void CDigihelperView::OnMenuitem32787()  
{ 
	// TODO: Add your command handler code here 
	Cij1Dlg dlg; 
	dlg.DoModal(); 
} 
 
void CDigihelperView::OnMenuitem32788()  
{ 
	// TODO: Add your command handler code here 
	Cij2Dlg dlg; 
	dlg.DoModal(); 
} 
 
void CDigihelperView::OnMenuitem32789()  
{ 
	// TODO: Add your command handler code here 
	CijjsDlg dlg; 
	dlg.DoModal(); 
} 
 
void CDigihelperView::OnMenuitem32790()  
{ 
	// TODO: Add your command handler code here 
	CgcspDlg dlg; 
	dlg.DoModal(); 
} 
 
void CDigihelperView::OnMenuitem32791()  
{ 
	// TODO: Add your command handler code here 
	CqlgcDlg dlg; 
	dlg.DoModal(); 
} 
 
void CDigihelperView::OnMenuitem32792()  
{ 
	// TODO: Add your command handler code here 
	C2cDlg dlg; 
	dlg.DoModal(); 
} 
 
void CDigihelperView::OnMenuitem32793()  
{ 
	// TODO: Add your command handler code here 
	CspzbcDlg dlg; 
	dlg.DoModal(); 
} 
 
void CDigihelperView::OnMenuitem32797()  
{ 
	// TODO: Add your command handler code here 
	CfrontDlg dlg; 
	dlg.DoModal(); 
} 
 
void CDigihelperView::OnMenuitem32803()  
{ 
	// TODO: Add your command handler code here 
	CrjjsDlg dlg; 
	dlg.DoModal(); 
}