Files
envi-code/SourceCode/Code2026/tg_shs/shs_annotate/SheetProp.h
T
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

104 lines
2.1 KiB
C++

//
// 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 //