mirror of
https://github.com/azure-rtos/guix.git
synced 2025-02-04 07:13:17 +08:00
19 lines
444 B
C++
19 lines
444 B
C++
#pragma once
|
|
|
|
class custom_edit :public CEdit
|
|
{
|
|
public:
|
|
custom_edit();
|
|
~custom_edit() {};
|
|
virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
|
|
void EnableNegativeValue() { m_bNegativeValueAllowed = TRUE; }
|
|
void EnableNumberCheck() { m_bNumberCheck = TRUE; };
|
|
|
|
protected:
|
|
void ErrorMessage();
|
|
BOOL OnPaste();
|
|
BOOL OnChar(UINT key);
|
|
BOOL m_bNegativeValueAllowed;
|
|
BOOL m_bNumberCheck;
|
|
};
|