www.pudn.com > PressMonitor_q.zip > PressHistoryView.h
#if !defined(AFX_PRESSHISTORYVIEW_H__637BEB01_63AA_11D0_99A1_000021004832__INCLUDED_) #define AFX_PRESSHISTORYVIEW_H__637BEB01_63AA_11D0_99A1_000021004832__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // PressHistoryView.h : header file // #include "3DTrendCtrl.h" #include "xShadeButton.h" #include "ColorStatic.h" ///////////////////////////////////////////////////////////////////////////// // CPressHistoryView form view #ifndef __AFXEXT_H__ #include#endif class CPressHistoryView : public CFormView { protected: CPressHistoryView(); // protected constructor used by dynamic creation DECLARE_DYNCREATE(CPressHistoryView) // Form Data public: //{{AFX_DATA(CPressHistoryView) enum { IDD = IDD_PRESS_HISTORY_FORM }; CColorStatic m_recordTime; CxShadeButton m_btnRecordOpen; CxShadeButton m_btnPageStart; CxShadeButton m_btnPagePrev; CxShadeButton m_btnPageNext; CxShadeButton m_btnPageEnd; // CxShadeButton m_btn7; CxShadeButton m_btn5; CxShadeButton m_btn6; CxShadeButton m_btn4; CxShadeButton m_btn3; CxShadeButton m_btn2; CxShadeButton m_btn1; CxShadeButton m_btn0; C3DTrendCtrl m_3DTrend; //}}AFX_DATA C3DTrendCtrl m_3DTrendPrint; // Attributes public: int m_nPageTotalNum; int m_nPageNum; CRect m_rectPrint; CRect m_rectTitle; CRect m_rectFooter; CRect m_rectChart; protected: int m_nHeadFontHigh; int m_nFootFontHigh; protected: void OnPrintPage(int pageNum); // Operations public: void InitialTrendPrint(); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CPressHistoryView) public: virtual void OnInitialUpdate(); virtual BOOL PreTranslateMessage(MSG* pMsg); protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint); virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo); virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); //}}AFX_VIRTUAL // Implementation protected: virtual ~CPressHistoryView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif // Generated message map functions //{{AFX_MSG(CPressHistoryView) afx_msg void OnCheck0(); afx_msg void OnCheck1(); afx_msg void OnCheck2(); afx_msg void OnCheck3(); afx_msg void OnCheck4(); afx_msg void OnCheck5(); afx_msg void OnCheck6(); afx_msg void OnPageStart(); afx_msg void OnPagePrev(); afx_msg void OnPageNext(); afx_msg void OnPageEnd(); afx_msg void OnRecordOpen(); //}}AFX_MSG DECLARE_MESSAGE_MAP() void OnUpdatePageStart(CCmdUI* pCmdUI); void OnUpdatePagePrev(CCmdUI* pCmdUI); void OnUpdatePageNext(CCmdUI* pCmdUI); void OnUpdatePageEnd(CCmdUI* pCmdUI); private: void PrintPageFooter(CDC* pDC,int currentPage); void PrintPageHeader(CDC* pDC); }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_PRESSHISTORYVIEW_H__637BEB01_63AA_11D0_99A1_000021004832__INCLUDED_)