#if !defined(AFX_CCLOCK_H__D78C8E61_DB4E_11D1_9421_006097D910D1__INCLUDED_)
#define AFX_CCLOCK_H__D78C8E61_DB4E_11D1_9421_006097D910D1__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// CClock.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CClock window

#define OFSX_H1  5+1
#define OFSY_H1  33+1

#define OFSX_H2  32+1
#define OFSY_H2  33+1

#define OFSX_M1  65+1
#define OFSY_M1  33+1

#define OFSX_M2  92+1
#define OFSY_M2  33+1

#define OFSX_S1  120+1
#define OFSY_S1  50+1

#define OFSX_S2  134+1
#define OFSY_S2  50+1

#define OFSX_MDAY1  5+1
#define OFSY_MDAY1  5+1

#define OFSX_MDAY2  19+1
#define OFSY_MDAY2  5+1

#define OFSX_MON1  41+1
#define OFSY_MON1  5+1

#define OFSX_MON2  55+1
#define OFSY_MON2  5+1

#define OFSX_YEAR1  77+1
#define OFSY_YEAR1  5+1
#define OFSX_YEAR2  91+1
#define OFSY_YEAR2  5+1
#define OFSX_YEAR3  105+1
#define OFSY_YEAR3  5+1
#define OFSX_YEAR4  119+1
#define OFSY_YEAR4  5+1

#define WIDTH_BIG 24

#define WIDTH_SMALL 12

#define TMR_SEC  1

class CClock : public CStatic
{
// Construction
public:
	CClock();

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CClock)
	//}}AFX_VIRTUAL

// Implementation
public:
	void ResetClock();
	virtual ~CClock();
	BOOL SubclassDlgItem(UINT nID, CWnd * pParent);

	// Generated message map functions
protected:
	//{{AFX_MSG(CClock)
	afx_msg void OnPaint();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnDestroy();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
private:
	int m_idxDigit[14];
	void DrawDateTime(CDC* pDC);
	void CheckDateTime(BOOL AvoidRepaint = FALSE);
	BOOL m_DontPutClock;
	int m_old_sec;
	int m_old_min;
	int m_old_hour;
  int m_old_mday;
  int m_old_mon;
  int m_old_year;
	time_t m_time;
	BITMAP m_bmInfoSmall;
	BITMAP m_bmInfoBig;
	BITMAP m_bmInfoClock;
	CBitmap m_bmClock;
	CBitmap m_bmSmall;
	CBitmap m_bmBig;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CCLOCK_H__D78C8E61_DB4E_11D1_9421_006097D910D1__INCLUDED_)
