forked from eltima-software/RS232-Data-Logger
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPort2FileDlg.h
More file actions
105 lines (89 loc) · 2.63 KB
/
Port2FileDlg.h
File metadata and controls
105 lines (89 loc) · 2.63 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// Port2FileDlg.h : header file
//
#pragma once
#include "afxcmn.h"
#include "afxwin.h"
#include "RedirectPort.h"
#include <vector>
#include "label.h"
#include <string> //jaca
#include <iostream> //jaca
//jaca
// #include "Commctrl.h "
// CRedirectDlg dialog
class CRedirectDlg : public CDialog
{
// Construction
public:
CRedirectDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
enum { IDD = IDD_PORT2FILE_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
private:
CListCtrl m_ListPorts;
CImageList m_IconList;
CString m_sErrorStatus;
CString m_sLogFileBase;
CString m_sLogFile;
CString m_sLogFile2;
CString m_sRecvBytes;
CString m_sTotalFileSize;
CString m_sTotal2FileSize;
CComboBox m_cbBaudrate;
CComboBox m_cbDataBits;
CComboBox m_cbParity;
CComboBox m_cbStopBits;
CComboBox m_cbFC;
BOOL m_bFileAppend;
int m_iCurItemSel;
//jaca
int m_minToTray;
BOOL m_minimizeOnComOpen;
std::vector<CRedirectPort*> m_Ports;
void GetAvailablePorts();
void UpdateSettings();
void UpdateCounters();
LRESULT OnWriteUpdate ( WPARAM, LPARAM );
LRESULT OnWriteStatus ( WPARAM, LPARAM );
LRESULT OnTrayMsg ( WPARAM, LPARAM );
// Implementation
protected:
HICON m_hIcon;
HICON m_hIcon2;
//jaca
NOTIFYICONDATA m_nid = {};
// Generated message map functions
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedBtView();
afx_msg void OnBnClickedBtStartlog();
afx_msg void OnBnClickedCheckLog();
protected:
virtual void OnOK();
virtual void OnCancel();
protected:
virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
void OnCustomdrawList ( NMHDR* pNMHDR, LRESULT* pResult );
public:
afx_msg void OnHdnGetdispinfoListPorts (NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnLvnItemActivateListPorts(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnLvnItemchangedListPorts (NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnLvnItemchangingListPorts(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnCbnSelchangeCbBaudrate ();
afx_msg void OnCbnSelchangeCbDatabits ();
afx_msg void OnCbnSelchangeCbParity ();
afx_msg void OnCbnSelchangeCbStopbits ();
afx_msg void OnCbnSelchangeCbFc ();
afx_msg void OnBnClickedCheckAppend ();
afx_msg void OnEnChangeEdLogfile ();
afx_msg void OnBnClickedButton1();
// afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
// afx_msg void OnSetFocus(CWnd* pOldWnd);
// afx_msg void OnSetFocus(CWnd* pOldWnd);
afx_msg void OnTimer(UINT_PTR nIDEvent);
afx_msg void OnBnClickedButton2();
};