Files
duilib/DuiLib/Layout/UIHorizontalLayout.h
wangchyz 02d1ed8832 1、统一了控件class name和interface name
2、修正了若干bug
2016-03-17 21:17:06 +08:00

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__