mirror of
https://github.com/duilib/duilib.git
synced 2026-10-19 07:02:25 +08:00
02d1ed8832
2、修正了若干bug
38 lines
868 B
C++
38 lines
868 B
C++
#ifndef __UIHORIZONTALLAYOUT_H__
|
|
#define __UIHORIZONTALLAYOUT_H__
|
|
|
|
#pragma once
|
|
|
|
namespace DuiLib
|
|
{
|
|
class DUILIB_API CHorizontalLayoutUI : public CContainerUI
|
|
{
|
|
public:
|
|
CHorizontalLayoutUI();
|
|
|
|
LPCTSTR GetClass() const;
|
|
LPVOID GetInterface(LPCTSTR pstrName);
|
|
UINT GetControlFlags() const;
|
|
|
|
void SetSepWidth(int iWidth);
|
|
int GetSepWidth() const;
|
|
void SetSepImmMode(bool bImmediately);
|
|
bool IsSepImmMode() const;
|
|
void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);
|
|
void DoEvent(TEventUI& event);
|
|
|
|
void SetPos(RECT rc, bool bNeedInvalidate = true);
|
|
void DoPostPaint(HDC hDC, const RECT& rcPaint);
|
|
|
|
RECT GetThumbRect(bool bUseNew = false) const;
|
|
|
|
protected:
|
|
int m_iSepWidth;
|
|
UINT m_uButtonState;
|
|
POINT m_ptLastMouse;
|
|
RECT m_rcNewPos;
|
|
bool m_bImmMode;
|
|
};
|
|
}
|
|
#endif // __UIHORIZONTALLAYOUT_H__
|