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

106 lines
3.3 KiB
C++

#if !defined(AFX_GRIDFORMVIEW_H__CF051554_2CD8_11D2_8205_0000E82EB017__INCLUDED_)
#define AFX_GRIDFORMVIEW_H__CF051554_2CD8_11D2_8205_0000E82EB017__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// GridFormView.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CGridFormView form view
// modify by xlc on 090902 消除tg5lib影响
// #if ADS<18
#if 0
class CGridView;
class CGridFormView : public CGridView
{
protected:
CGridFormView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CGridFormView)
// Form Data
public:
COLORREF m_ColorSelect;
DList<int> m_lstIsSelect;
DList<int> m_lstAlignMode;
DList<double> m_lstColumnWidth;
BOOL m_bEnable;
CWnd* m_pFormSetDlg;
double m_nTitTxtSize;
double m_nHeadTxtSize;
double m_nConTxtSize;
double m_nHeadRowHeight;
double m_nConRowHeight;
XString m_sTitleName;
//{{AFX_DATA(CGridFormView)
enum { IDD = IDD_GRIDFORM };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Operations
public:
void Insertdbf();
BOOL IsSelect();
int GetAlignMode();
int ArrangeWindow();
void UpdateColumnWidth();
void UpdateAlignMode(int nAlignMode);
void EnableOtherGridFrame(BOOL bEnable=TRUE);
void CalculateTextWidth(int nColumnIndex,double& nMaxLen,double& nHeadLen);
void CalculateWidth(double& nMinWidth,double& nTotalWidth);
void CalculateWidth(DList<double>& lstColumnSize,DList<int>& lstAlignMode,
DList<CFieldHead>& lstHeadInfo,double& nMinWidth,double& nTotalWidth);
void ArrangeWidth(DList<double>& lstColumnSize,double nMinWidth,
double& nTotalWidth,double nTotal);
AcDbObjectId AddToModelSpace(AcDbEntity *pEntity);
void AddToGroupDict(const TCHAR* sGroupName,AcDbObjectIdArray idArray);
AcDbObjectId AddTextToModelSpace(XString sDesc,AcDbObjectId nTextId,double nHeight,
AcDb::TextHorzMode nHorzMode,AcGePoint3d pt,
AcDbTextStyleTableRecord* pTextStyle);
virtual XDbfTable *OpenDbfTable(); // override member from CGridView
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGridFormView)
public:
virtual void OnInitialUpdate();
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
virtual void PostNcDestroy();
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CGridFormView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
//{{AFX_MSG(CGridFormView)
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnKeyPressGrid(short FAR* KeyAscii);
afx_msg void OnInsertdbf();
afx_msg void OnHeadClickGrid(short ColIndex);
afx_msg void OnUpdateInsertdbf(CCmdUI* pCmdUI);
afx_msg void OnColResizeGrid(short ColIndex, short FAR* Cancel);
afx_msg void OnDestroy();
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_GRIDFORMVIEW_H__CF051554_2CD8_11D2_8205_0000E82EB017__INCLUDED_)