00001 #if !defined(AFX_ASPECTSPECTBL_H__62A172B9_B4D4_497D_B466_B7BB7BF98B7F__INCLUDED_)
00002 #define AFX_ASPECTSPECTBL_H__62A172B9_B4D4_497D_B466_B7BB7BF98B7F__INCLUDED_
00003
00004 #if _MSC_VER > 1000
00005 #pragma once
00006 #endif // _MSC_VER > 1000
00007
00008 #include <AFXCMN.H>
00009
00010
00011
00012
00014
00015
00016 class SelConf;
00017
00018 class CTable : public CListCtrl
00019 {
00020
00021 public:
00022 CTable();
00023
00024
00025 public:
00026
00027
00028 public:
00029
00030
00031
00032
00033
00034 virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
00035 virtual BOOL PreCreateWindow(CREATESTRUCT &cs);
00036
00037
00038 public:
00039 SelConf * m_parent;
00040
00041 void addRow(int rowID, CString& role, char kind, int clique, bool isPrimary, CString& repr);
00042 bool getRow(int rowID, CString& role, bool& extend, CString& repr);
00043 virtual ~CTable();
00044 int HitTestEx(CPoint &point, int *col) const;
00045 CEdit* EditSubLabel( int nItem, int nCol );
00046 CComboBox* ShowInPlaceList( int nItem, int nCol, CStringList &lstItems, int nSel );
00047
00048 protected:
00049 static LPCTSTR MakeShortString(CDC* pDC, LPCTSTR lpszLong, int nColumnLen, int nOffset);
00050 int m_cxClient;
00051
00052
00053 protected:
00054
00055 afx_msg void OnEndlabeledit(NMHDR* pNMHDR, LRESULT* pResult);
00056 afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
00057 afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
00058 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
00059 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00060 afx_msg void OnSize(UINT nType, int cx, int cy);
00061 afx_msg void OnPaint();
00062 afx_msg void OnSort(NMHDR* pNMHDR, LRESULT* pResult);
00063
00064
00065 DECLARE_MESSAGE_MAP()
00066 };
00067
00069
00070
00071
00072
00073 #endif // !defined(AFX_ASPECTSPECTBL_H__62A172B9_B4D4_497D_B466_B7BB7BF98B7F__INCLUDED_)