////////////////////////////////////////////////////////////////////////////// //文件: CPrintPageSetup.cpp //主要功能: // //程序编写: 2006-12-07 // // ///////////////////////////////////////////////////////////////////////////// #pragma once #include "afxwin.h" // CPrintPageSetup 对话框 class CPrintPageSetup : public CPropertyPage { DECLARE_DYNAMIC(CPrintPageSetup) public: CPrintPageSetup(); virtual ~CPrintPageSetup(); // 对话框数据 enum { IDD = IDD_DIALOG_PRINT_SETUP_PAGE }; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 virtual BOOL OnInitDialog(); afx_msg void OnBnClickedButtonPrintPagePagenumberfont(); afx_msg void OnBnClickedCheckPrintPageExtend(); afx_msg void OnBnClickedCheckPrintPagePartition(); afx_msg void OnBnClickedCheckPrintPageMulline(); afx_msg void OnCbnSelchangeComboPrintPagePagenumberside(); afx_msg void OnBnClickedButtonPrintPagePreview(); afx_msg void OnBnClickedButtonPrintPageSetDefault(); afx_msg void OnBnClickedCheckPrintPageCenterDocument(); DECLARE_MESSAGE_MAP() public: BOOL m_bExtendScreen; int m_nScreenSel; BOOL m_bPartition; int m_nPartitionIdea; int m_nSuperpositionWidth; BOOL m_bMulline; int m_nMullineIdea; int m_nMullineNum; BOOL m_bCenterDocument; int m_nMarginTop; int m_nMarginBottom; int m_nMarginLeft; int m_nMarginRight; int m_nSideSel; int m_nAliginSel; int m_nMarginX; int m_nMarginY; CString m_strLabel; LOGFONT m_lfPageNumberFont; void SetSpinRange(UINT nID); void InitFont(LOGFONT& font); void EnableExtend(void); void EnablePartition(void); void EnableMulline(void); void EnablePageNumber(void); void Read(LPCTSTR iniFile); void Write(LPCTSTR iniFile); BOOL m_bPreview; };