用于EagleEye3.0 规则集漏报和误报测试的示例项目,项目收集于github和gitee
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

47 lines
1.1 KiB

/********************************************************************
created: 2014/11/03
created: 3:11:2014 16:13
filename: SIPAddressCtrl.h
author: ±ù
purpose: SOUI°æµÄIP¿Ø¼þ
*********************************************************************/
#pragma once
namespace SOUI
{
class SEditIP;
class SIPAddressCtrl :
public SWindow
{
SOUI_CLASS_NAME(SIPAddressCtrl,L"ipctrl")
public:
SIPAddressCtrl(void);
~SIPAddressCtrl(void);
BOOL IsBlank() const;
void ClearAddress();
int GetAddress(BYTE& nField0, BYTE& nField1, BYTE& nField2, BYTE& nField3) const;
int GetAddress(DWORD& dwAddress) const;
void SetAddress( DWORD dwAddress);
void SetAddress( BYTE nField0, BYTE nField1, BYTE nField2, BYTE nField3);
void SetFieldFocus(WORD nField);
void SetFieldRange(int nField, BYTE nLower, BYTE nUpper);
protected:
void OnPaint(IRenderTarget *pRT);
LRESULT OnCreate(LPVOID);
void OnSize( UINT nType, CSize size );
SOUI_MSG_MAP_BEGIN()
MSG_WM_CREATE(OnCreate)
MSG_WM_SIZE(OnSize)
MSG_WM_PAINT_EX(OnPaint)
SOUI_MSG_MAP_END()
private:
SEditIP * m_editFields[4];
};
}