PageSetupDlg.h
上传用户:cding2008
上传日期:2007-01-03
资源大小:1812k
文件大小:3k
- /////////////////////////////////////////////////////////////////////////////
- // PageSetupDlg.h : header file
- //
- // ModelMagic 3D and 'glOOP' (OpenGL Object Oriented Programming library)
- // Copyright (c) Craig Fahrnbach 1997, 1999
- //
- // OpenGL is a registered trademark of Silicon Graphics
- //
- //
- // This program is provided for educational and personal use only and
- // is provided without guarantee or warrantee expressed or implied.
- //
- // Commercial use is strickly prohibited without written permission
- // from ImageWare Development.
- //
- /////////////////////////////////////////////////////////////////////////////
- class CPageSetupDlg : public CDialog
- {
- // Construction
- public:
- void DrawPageOutline();
- CPageSetupDlg(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CPageSetupDlg)
- enum { IDD = IDD_DIALOG_PAGE_SETUP };
- CEdit m_EditRight;
- CEdit m_EditLeft;
- CEdit m_EditHeader;
- CEdit m_EditFooter;
- CEdit m_EditBottom;
- CSpinButtonCtrl m_SpinRight;
- CSpinButtonCtrl m_SpinLeft;
- CSpinButtonCtrl m_SpinHeader;
- CSpinButtonCtrl m_SpinFooter;
- CSpinButtonCtrl m_SpinBottom;
- CEdit m_EditTop;
- CSpinButtonCtrl m_SpinTop;
- int m_iCenterImage;
- float m_fTopMargin;
- float m_fBottomMargin;
- float m_fLeftMargin;
- float m_fRightMargin;
- float m_fHeaderMargin;
- float m_fFooterMargin;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CPageSetupDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HWND m_wndPagePreview;
- void SetSpinPosn(CSpinButtonCtrl* pSpinCtrl, float fValue);
- int GetMarginPosition(float fSelect);
- void SetEditText(CEdit* pEdit, float fValue);
- // Generated message map functions
- //{{AFX_MSG(CPageSetupDlg)
- virtual BOOL OnInitDialog();
- virtual void OnOK();
- afx_msg void OnPrintSetup();
- afx_msg void OnRadioCenterImage();
- afx_msg void OnDeltaposSpinTop(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnUpdateTop();
- afx_msg void OnUpdateBottom();
- afx_msg void OnUpdateLeft();
- afx_msg void OnUpdateRight();
- afx_msg void OnUpdateHeader();
- afx_msg void OnUpdateFooter();
- afx_msg void OnDeltaposSpinBottom(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnDeltaposSpinLeft(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnDeltaposSpinRight(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnDeltaposSpinHeader(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnDeltaposSpinFooter(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnPaint();
- afx_msg void OnChangePagePreview();
- afx_msg void OnUpdatePagePreview();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };