xref: /MusicPlayer2/MusicPlayer2/EditEx.h (revision 6060ad5185b70f10cb5eef3b975ec4a101ff4d89)
1 //CEdit的派生类,用于支持按Ctrl+A全选
2 #pragma once
3 
4 
5 // CEditEx
6 
7 class CEditEx : public CEdit
8 {
9 	DECLARE_DYNAMIC(CEditEx)
10 
11 public:
12 	CEditEx();
13 	virtual ~CEditEx();
14 
15     void ResetModified();
16     CString GetText() const;
17     void SetColorWhenModified(bool val);    //是否要在有修改时将文本颜色改为主题色
18 
19 protected:
20     bool m_show_color_when_modified{ true };
21 
22 protected:
23 	DECLARE_MESSAGE_MAP()
24 	virtual BOOL PreTranslateMessage(MSG* pMsg);
25 public:
26     afx_msg HBRUSH CtlColor(CDC* /*pDC*/, UINT /*nCtlColor*/);
27 protected:
28     afx_msg LRESULT OnTabletQuerysystemgesturestatus(WPARAM wParam, LPARAM lParam);
29 };
30 
31 
32