#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 m_lstIsSelect; DList m_lstAlignMode; DList 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& lstColumnSize,DList& lstAlignMode, DList& lstHeadInfo,double& nMinWidth,double& nTotalWidth); void ArrangeWidth(DList& 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_)