📄 printdbview.h
字号:
// PrintDBView.h : interface of the CPrintDBView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_PRINTDBVIEW_H__B6A5CB58_B43A_48E6_AF6B_4AD5EFA708AA__INCLUDED_)
#define AFX_PRINTDBVIEW_H__B6A5CB58_B43A_48E6_AF6B_4AD5EFA708AA__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CPrintDBView : public CFormView
{
protected: // create from serialization only
CPrintDBView();
DECLARE_DYNCREATE(CPrintDBView)
public:
//{{AFX_DATA(CPrintDBView)
enum { IDD = IDD_PRINTDB_FORM };
CListBox m_SumList;
CListBox m_List;
//}}AFX_DATA
// Attributes
public:
CPrintDBDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPrintDBView)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual BOOL DestroyWindow();
virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
virtual void OnDraw(CDC* pDC);
//}}AFX_VIRTUAL
// Implementation
public:
int circle;
int PrintType;
int ReturnPrintPages();
void AdvancedQuery(CString DateFrom,CString SecFrom,CString DateTo,CString SecTo);
void TodayQuery();
BOOL HaveSum;
BOOL CanUseTotal;
int iConeDayNum;
int iScreenDayNum;
int iCone3;
int iCone2;
int iCone1;
int iScreen3;
int iScreen2;
int iScreen1;
BOOL IsLinkTable;
BOOL IsLinkTab();
CString FilStrWithNul(CString&str,int i);
int ReturnTimeSection (int time);
BOOL CStringCompare(CString str1, CString str2);
void Query(CString sdate);
_RecordsetPtr m_pRecordset;
virtual ~CPrintDBView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CPrintDBView)
afx_msg void OnStandardPrint();
afx_msg void OnTotalnum();
afx_msg void OnUpdateStandardPrint(CCmdUI* pCmdUI);
afx_msg void OnPrintDB();
afx_msg void OnToday();
afx_msg void OnUpdateToday(CCmdUI* pCmdUI);
afx_msg void OnAdvancedQuery();
afx_msg void OnUpdateAdvancedQuery(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in PrintDBView.cpp
inline CPrintDBDoc* CPrintDBView::GetDocument()
{ return (CPrintDBDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PRINTDBVIEW_H__B6A5CB58_B43A_48E6_AF6B_4AD5EFA708AA__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -