mirror of
https://github.com/balloonwj/TeamTalk.git
synced 2026-10-19 23:29:20 +08:00
37 lines
630 B
C++
37 lines
630 B
C++
#ifndef __UIDATETIME_H__
|
|
#define __UIDATETIME_H__
|
|
|
|
#pragma once
|
|
|
|
namespace DuiLib
|
|
{
|
|
class CDateTimeWnd;
|
|
|
|
/// ʱ¼äÑ¡Ôñ¿Ø¼þ
|
|
class UILIB_API CDateTimeUI : public CLabelUI
|
|
{
|
|
friend class CDateTimeWnd;
|
|
public:
|
|
CDateTimeUI();
|
|
LPCTSTR GetClass() const;
|
|
LPVOID GetInterface(LPCTSTR pstrName);
|
|
|
|
SYSTEMTIME& GetTime();
|
|
void SetTime(SYSTEMTIME* pst);
|
|
|
|
void SetReadOnly(bool bReadOnly);
|
|
bool IsReadOnly() const;
|
|
|
|
void UpdateText();
|
|
|
|
void DoEvent(TEventUI& event);
|
|
|
|
protected:
|
|
SYSTEMTIME m_sysTime;
|
|
int m_nDTUpdateFlag;
|
|
bool m_bReadOnly;
|
|
|
|
CDateTimeWnd* m_pWindow;
|
|
};
|
|
}
|
|
#endif // __UIDATETIME_H__
|