mirror of
https://github.com/duilib/duilib.git
synced 2026-10-17 06:01:08 +08:00
02d1ed8832
2、修正了若干bug
42 lines
859 B
C++
42 lines
859 B
C++
#ifndef __UIDATETIME_H__
|
|
#define __UIDATETIME_H__
|
|
|
|
#pragma once
|
|
|
|
namespace DuiLib
|
|
{
|
|
class CDateTimeWnd;
|
|
|
|
/// ʱ¼äÑ¡Ôñ¿Ø¼þ
|
|
class DUILIB_API CDateTimeUI : public CLabelUI
|
|
{
|
|
friend class CDateTimeWnd;
|
|
public:
|
|
CDateTimeUI();
|
|
LPCTSTR GetClass() const;
|
|
LPVOID GetInterface(LPCTSTR pstrName);
|
|
UINT GetControlFlags() const;
|
|
HWND GetNativeWindow() const;
|
|
|
|
SYSTEMTIME& GetTime();
|
|
void SetTime(SYSTEMTIME* pst);
|
|
|
|
void SetReadOnly(bool bReadOnly);
|
|
bool IsReadOnly() const;
|
|
|
|
void UpdateText();
|
|
|
|
void SetPos(RECT rc, bool bNeedInvalidate = true);
|
|
void Move(SIZE szOffset, bool bNeedInvalidate = true);
|
|
|
|
void DoEvent(TEventUI& event);
|
|
|
|
protected:
|
|
SYSTEMTIME m_sysTime;
|
|
int m_nDTUpdateFlag;
|
|
bool m_bReadOnly;
|
|
|
|
CDateTimeWnd* m_pWindow;
|
|
};
|
|
}
|
|
#endif // __UIDATETIME_H__
|