-
Notifications
You must be signed in to change notification settings - Fork 9
/
LogWindow.h
51 lines (40 loc) · 1.02 KB
/
LogWindow.h
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
48
49
50
51
#pragma once
#include "afxcmn.h"
class CLogWindow : public CFrameWnd
{
DECLARE_DYNCREATE(CLogWindow)
public:
CLogWindow();
~CLogWindow() override;
protected:
DECLARE_MESSAGE_MAP()
CListCtrl m_View;
public:
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnClose();
afx_msg void OnWindowClose();
protected:
BOOL PreCreateWindow(CREATESTRUCT& cs) override;
CImageList m_ImageList;
public:
afx_msg void OnSize(UINT nType, int cx, int cy);
protected:
HICON m_hIcon;
int m_Flag;
public:
void AddMessage(int Type, LPCSTR Message);
afx_msg void OnSavelog();
void AutoSave(void);
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
protected:
BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) override;
public:
afx_msg void OnMove(int x, int y);
void SetLanguage(void);
afx_msg void OnClearlog();
void DumpSystemVersion(void);
};
#define LOG_NORMAL 0
#define LOG_WARNING 1
#define LOG_ERROR 2
#define LOG_INFO 3