// // This class defines custom modal property sheet #ifndef __SHEETPROP_H__ #define __SHEETPROP_H__ #include "RowDividerPage.h" #include "ColDividerPage.h" #include "GridStylePage.h" #include "SheetBorderPage.h" #include "SheetTitlePage.h" class CSheetGridStylePage : public CGridStylePage { DECLARE_DYNCREATE(CSheetGridStylePage) // Construction public: CSheetGridStylePage(); ~CSheetGridStylePage(); // Dialog Data //{{AFX_DATA(CSheetGridStylePage) enum { IDD = IDD_GRIDSTYLE }; BOOL m_bApplyDescend; //}}AFX_DATA // Overrides // ClassWizard generate virtual function overrides //{{AFX_VIRTUAL(CSheetGridStylePage) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: // Generated message map functions //{{AFX_MSG(CSheetGridStylePage) //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// // CSheetProp class CSheetProp : public CPropertySheet { DECLARE_DYNAMIC(CSheetProp) // Construction public: CSheetProp(CWnd* pWndParent = NULL); void Obj2Dlg(const TDbSheet *pSheet); void Dlg2Obj(TDbSheet *pSheet) const; // Attributes public: static int g_nActivePage; CSheetGridStylePage m_gridStyle; CRowDividerPage m_rowDivider; CColDividerPage m_colDivider; CSheetBorderPage m_border; CSheetTitlePage m_title; //add by whl CToolBar m_toolbar; afx_msg BOOL OnToolTipText(UINT nID, NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnEdit(UINT nID); afx_msg void OnOK(); afx_msg void OnCancel(); // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CSheetProp) public: virtual BOOL OnInitDialog(); protected: virtual void PostNcDestroy(); //}}AFX_VIRTUAL // Implementation public: virtual ~CSheetProp(); // Generated message map functions protected: //{{AFX_MSG(CSheetProp) afx_msg void OnDestroy(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// #endif //