#pragma once
|
#include "LogEdit.h"
|
#include "BlButton.h"
|
#include <vector>
|
#include <string>
|
|
|
#define ID_MSG_LOGDLG_HIDE WM_USER + 1023
|
|
// CPageLog ¶Ô»°¿ò
|
|
class CPageLog : public CDialogEx
|
{
|
DECLARE_DYNAMIC(CPageLog)
|
|
public:
|
CPageLog(CWnd* pParent = NULL); // ±ê×¼¹¹Ô캯Êý
|
virtual ~CPageLog();
|
|
|
private:
|
void InitRxWindow();
|
void AppendLog(int level, const char* pszText);
|
void Resize();
|
|
|
private:
|
COLORREF m_crBkgnd;
|
HBRUSH m_hbrBkgnd;
|
IObserver* m_pObserver;
|
int m_nLevel;
|
CString m_strIncludeText;
|
BOOL m_bIncludeRegex;
|
std::vector<std::string> m_customIncludeTexts;
|
|
private:
|
CBlButton m_btnLevel;
|
CBlButton m_btnInclude;
|
CLogEdit m_logEdit;
|
|
|
// ¶Ô»°¿òÊý¾Ý
|
#ifdef AFX_DESIGN_TIME
|
enum { IDD = IDD_DIALOG_LOG };
|
#endif
|
|
protected:
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV Ö§³Ö
|
|
DECLARE_MESSAGE_MAP()
|
public:
|
virtual BOOL OnInitDialog();
|
afx_msg void OnSize(UINT nType, int cx, int cy);
|
afx_msg void OnTimer(UINT_PTR nIDEvent);
|
afx_msg void OnDestroy();
|
afx_msg void OnClose();
|
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
|
virtual BOOL PreTranslateMessage(MSG* pMsg);
|
afx_msg void OnButtonLevelMenuClicked(NMHDR* pNMHDR, LRESULT* pResult);
|
afx_msg void OnButtonIncludeMenuClicked(NMHDR* pNMHDR, LRESULT* pResult);
|
afx_msg void OnEnChangeEditInclude();
|
afx_msg void OnBnClickedCheckRegex();
|
};
|