用于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.

45 lines
1.3 KiB

5 months ago
#pragma once
#include <core/swnd.h>
namespace SOUI
{
class SSplitBar : public SWindow
{
SOUI_CLASS_NAME(SSplitBar, L"splitbar")
public:
SSplitBar();
~SSplitBar();
protected:
void OnLButtonDown(UINT nFlags,CPoint pt);
void OnLButtonUp(UINT nFlags,CPoint pt);
void OnMouseMove(UINT nFlags,CPoint pt);
BOOL OnSetCursor(const CPoint &pt);
LRESULT OnCreate( LPVOID );
void ResizeHostWindow(int nOffset);
SOUI_ATTRS_BEGIN()
ATTR_INT(L"resizeHostWnd", m_bResizeHostWnd, FALSE)
ATTR_INT(L"vertical", m_bVertical, FALSE)
ATTR_INT(L"minSize", m_nSizeMin, FALSE)
ATTR_INT(L"maxSize", m_nSizeMax,FALSE)
SOUI_ATTRS_END()
SOUI_MSG_MAP_BEGIN()
MSG_WM_CREATE(OnCreate)
MSG_WM_LBUTTONDOWN(OnLButtonDown)
MSG_WM_LBUTTONUP(OnLButtonUp)
MSG_WM_MOUSEMOVE(OnMouseMove)
SOUI_MSG_MAP_END()
CPoint m_ptDragPrev; /**< <EFBFBD>϶<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǰһ<EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD> */
BOOL m_bDragging; /**< <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>϶<EFBFBD> */
BOOL m_bResizeHostWnd; /**< <EFBFBD>Ƿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
int m_nSizeMin; /**< <EFBFBD><EFBFBD>С<EFBFBD><EFBFBD>С */
int m_nSizeMax; /**< <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>С */
int m_nOrginPos; /**< <EFBFBD><EFBFBD>ԭʼ<EFBFBD><EFBFBD>left/top*/
int m_nTrackingPos;
BOOL m_bVertical; /**< <EFBFBD>Ƿ<EFBFBD><EFBFBD><EFBFBD>ֱ<EFBFBD>ָĬ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˮƽ<EFBFBD>ָ<EFBFBD>*/
};
};