You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.3 KiB
C++

#pragma once
#include "MyDlgView.h"
#include "afxdtctl.h"
enum eLogListType
{
_LogListType_LaipuLaser = 0,
_LogListType_LaipuDrawing,
};
class CDlgChildEventLog : public CMyDlgView
{
DECLARE_DYNAMIC(CDlgChildEventLog)
public:
CDlgChildEventLog(CWnd* pParent = NULL); // 标准构造函数
virtual ~CDlgChildEventLog();
virtual void OnViewOpen();//响应view 打开的时候
void InsertLogToListExt(CString &LogStr,CListCtrl &List);
void InsertLogToList(CString &LogStr,eLogListType LogListType);
void InitLogList(CListCtrl &List);
CListCtrl &GetLogList(eLogListType LogListType);
// 对话框数据
enum { IDD = IDD_CHILD_EVENT_LOG };
private:
CListCtrl m_LaipuLaserLogList;
CListCtrl m_LaipuDrawingLogList;
CComboBox m_SelLogTypeComb;
eLogListType m_CurLogListType;
bool m_bStopRevLog;//暂停接受新的log (不影响log 保存到文件)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
virtual BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedClearListBtn();
afx_msg void OnBnClickedOpenLogDirBtn();
afx_msg void OnCbnSelchangeLogTypeCombo();
afx_msg void OnBnClickedStopRevLogBtn();
};