00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #if !defined(LISTCTRLEX_H)
00016 #define LISTCTRLEX_H
00017
00019
00020
00021 class CInPlaceEdit : public CEdit
00022 {
00023
00024 public:
00025 CInPlaceEdit(int iItem, int iSubItem, CString sInitText);
00026
00027
00028 public:
00029
00030
00031 public:
00032
00033
00034
00035
00036 public:
00037 virtual BOOL PreTranslateMessage(MSG* pMsg);
00038
00039
00040
00041 public:
00042 virtual ~CInPlaceEdit();
00043
00044
00045 protected:
00046
00047 afx_msg void OnKillFocus(CWnd* pNewWnd);
00048 afx_msg void OnNcDestroy();
00049 afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
00050 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00051
00052
00053 DECLARE_MESSAGE_MAP()
00054 private:
00055 int m_iItem;
00056 int m_iSubItem;
00057 CString m_sInitText;
00058 BOOL m_bESC;
00059 };
00060
00062
00063
00064
00065 class CListCtrlEx1 : public CListCtrl
00066 {
00067
00068 public:
00069 CListCtrlEx1();
00070
00071
00072 public:
00073
00074
00075 public:
00076
00077
00078
00079
00080 public:
00081
00082
00083
00084
00085
00086
00087
00088 public:
00089 virtual ~CListCtrlEx1();
00090
00091
00092 protected:
00093
00094
00095
00096 afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
00097 afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
00098 afx_msg BOOL OnEndLabelEdit(LPNMHDR pnmhdr, LRESULT *pResult);
00099 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
00100
00101 int HitTestEx(CPoint &point, int *col);
00102 CEdit* EditSubLabel( int nItem, int nCol );
00103
00104 DECLARE_MESSAGE_MAP()
00105
00106
00107 };
00108
00109
00110
00111 #endif