xref: /MusicPlayer2/MusicPlayer2/EditableListBox.h (revision c6a58a2037953935d5a3d5bf8424e3066bbd5fda)
1 #pragma once
2 #include "CListBoxEnhanced.h"
3 
4 class CEditableListBox :
5     public CListBoxEnhanced
6 {
7     DECLARE_DYNAMIC(CEditableListBox)
8 public:
9     CEditableListBox();
10     ~CEditableListBox();
11 
12     void Edit(int row);			//编辑指定行
13 
14 protected:
15     CEdit m_item_edit;
16     int m_edit_row{};
17     bool m_editing{};
18 
19 protected:
20     void EndEdit();
21 
22     DECLARE_MESSAGE_MAP()
23     virtual void PreSubclassWindow();
24     afx_msg void OnEnKillfocusEdit1();
25 
26 public:
27     afx_msg void OnNMDblclk(NMHDR *pNMHDR, LRESULT *pResult);
28     afx_msg void OnLvnBeginScroll(NMHDR *pNMHDR, LRESULT *pResult);
29 };
30 
31