// EBookDlg.h : header file // #include "BmpButton.h" #include "OpenBookFileDlg.h" #if !defined(AFX_EBOOKDLG_H__CA3F2035_03B0_4E4E_AB91_D93FAD50CE82__INCLUDED_) #define AFX_EBOOKDLG_H__CA3F2035_03B0_4E4E_AB91_D93FAD50CE82__INCLUDED_ #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 ///////////////////////////////////////////////////////////////////////////// // CEBookDlg dialog class CEBookDlg : public CDialog { private: CDC m_BgDC; CDC m_MemDC; CFont m_txtFont; CFont m_BookFont; CBrush m_BookBrush; CString m_TitleText; CString m_SourceFile; COLORREF m_BookTxtColor; // Construction public: CString GetFileName(CString strFileName); int GetLineHeight(CFont* pFont); CString ReadFile(CString sFileName); CEBookDlg(CWnd* pParent = NULL); // standard constructor ~CEBookDlg(); // Dialog Data //{{AFX_DATA(CEBookDlg) enum { IDD = IDD_EBOOK_DIALOG }; CEdit m_txtBook; CBmpButton m_butUp; CBmpButton m_butOpen; CBmpButton m_butExit; CBmpButton m_butDown; CBmpButton m_butBack; //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CEBookDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: HICON m_hIcon; // Generated message map functions //{{AFX_MSG(CEBookDlg) virtual BOOL OnInitDialog(); afx_msg void OnPaint(); afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); afx_msg void OnButtonOpen(); afx_msg void OnButtonBack(); afx_msg void OnButtonDown(); afx_msg void OnButtonExit(); afx_msg void OnButtonUp(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_EBOOKDLG_H__CA3F2035_03B0_4E4E_AB91_D93FAD50CE82__INCLUDED_)