ETNoticeWnd.h
938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#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);
};