CETTimeEditWnd.h 940 Bytes
#pragma once
#include "resource.h"
#include "afxwin.h"
#include "stdafx.h"

// CETNoticeWnd 对话框

class CETTimeEditWnd : public CDialogEx
{
	DECLARE_DYNAMIC(CETTimeEditWnd)

public:
	CETTimeEditWnd(CWnd* pParent = NULL);   // 标准构造函数
	virtual ~CETTimeEditWnd();

	// 对话框数据
	enum { IDD = IDD_DIALOG_TIME_WND };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()

public:
	void SetWindowText(CString sText);
	void CloseNoticeWnd();
	void ReSizeEdit();

private:
	void ReSetState();

private:
	CETNoticeEdit m_editNotice;
	int m_iTimerID;
	int m_iCurPos;
	CString m_sText;
	int	m_iDelayTime;
	int m_iIntervalTime;
	CFont m_fontText;
	CBrush m_brushBKG;
public:
	virtual BOOL OnInitDialog();
	afx_msg void OnTimer(UINT_PTR nIDEvent);
	afx_msg void OnPaint();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
};