1
0
mirror of https://github.com/azure-rtos/guix.git synced 2025-02-04 07:13:17 +08:00
guix/guix_studio/custom_edit.h

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;
};