1 #pragma once
2 
3 class custom_edit :public CEdit
4 {
5 public:
6     custom_edit();
~custom_edit()7     ~custom_edit() {};
8     virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
EnableNegativeValue()9     void EnableNegativeValue() { m_bNegativeValueAllowed = TRUE; }
EnableNumberCheck()10     void EnableNumberCheck() { m_bNumberCheck = TRUE; };
11 
12 protected:
13     void ErrorMessage();
14     BOOL OnPaste();
15     BOOL OnChar(UINT key);
16     BOOL m_bNegativeValueAllowed;
17     BOOL m_bNumberCheck;
18 };
19