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 NameSpecTbl : public CListCtrl
00017 {
00018
00019 public:
00020 NameSpecTbl();
00021
00022
00023 public:
00024
00025
00026 public:
00027
00028
00029
00030
00031
00032
00033
00034 public:
00035 CImageList m_checkImages;
00036 bool GetRow( int rowID, CString& name, CString& disp_name, CString& kind);
00037 void AddRow( int rowID, CString& name, CString& disp_name, CString& kind);
00038
00039 virtual ~NameSpecTbl();
00040 virtual BOOL PreCreateWindow( CREATESTRUCT &cs);
00041 virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
00042 int HitTestEx(CPoint &point, int *col) const;
00043 CEdit* EditSubLabel( int nItem, int nCol );
00044 CComboBox* ShowInPlaceList( int nItem, int nCol, CStringList &lstItems, int nSel );
00045
00046 static LPCTSTR MakeShortString(CDC* pDC, LPCTSTR lpszLong, int nColumnLen, int nOffset);
00047
00048
00049
00050 protected:
00051
00052 afx_msg void OnEndlabeledit(NMHDR* pNMHDR, LRESULT* pResult);
00053 afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
00054 afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
00055 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
00056 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00057
00058
00059 DECLARE_MESSAGE_MAP()
00060 };
00061
00063
00064
00065
00066
00067 #endif // !defined(AFX_ASPECTSPECTBL_H__62A172B9_B4D4_497D_B466_B7BB7BF98B7F__INCLUDED_)