ETNoticeWnd.h 938 Bytes
#pragma once
#include "resource.h"
#include "afxwin.h"
#include "ETNoticeEdit.h"

// CETNoticeWnd 对话框

class CETNoticeWnd : public CDialogEx
{
	DECLARE_DYNAMIC(CETNoticeWnd)

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

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

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);
};