-
Notifications
You must be signed in to change notification settings - Fork 1
/
RemoteConsoleDlg.h
56 lines (45 loc) · 1.17 KB
/
RemoteConsoleDlg.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
52
53
54
55
56
#pragma once
class CRemoteConsoleDlg : public CDialogEx
{
DECLARE_DYNCREATE(CRemoteConsoleDlg)
public:
CStringArray m_saMessages;//
virtual ~CRemoteConsoleDlg();
CRemoteConsoleDlg(CWnd* pParent = NULL);
CString m_csAddress;
CString m_csPort;
CString m_csAccount;
CString m_csPassword;
CString m_csCommand;
bool m_bCommandPending;
bool m_bIsConnected;
bool m_bContinue;
int m_iReceiveTimeout;
int m_nIDTimer;
HICON m_hIcon;
void OnConMessage(CString csText);
// Dialog Data
enum { IDD = IDD_REMOTECONSOLEDLG };
CRichEditCtrl m_creConsole;
BOOL m_bBroadcast;
CEdit m_ceConsoleSend;
CButton m_cbReconnect;
CButton m_cbBroadcast;
protected:
virtual void DoDataExchange(CDataExchange* pDX);
virtual BOOL PreTranslateMessage(MSG* pMsg);
CRect m_crBroadcast;
CRect m_crCommandText;
CRect m_crReConnect;
CRect m_crConsole;
CRect m_crOriginal;
virtual BOOL OnInitDialog();
afx_msg void OnReconnect();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnSendcommand();
afx_msg void OnBroadcast();
DECLARE_MESSAGE_MAP()
};
UINT ClientThread(LPVOID lpParam);