-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainFrm.h
78 lines (61 loc) · 1.69 KB
/
MainFrm.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// MainFrm.h : interface of the CMainFrame class
//
#pragma once
#include "ChildView.h"
#include "TrueColorToolBar.h"
#include "MenuEx.h"
class CMainFrame : public CFrameWnd
{
private:
// BIT0:1 00 Connect OFF
// BIT0:1 01 Connect Serial
// BIT0:1 10 Connect Pipe
// BIT0:1 11 Connect Telnet
// BIT4:5 00 No service
// BIT4:5 01 Listening
// BIT4:5 02 Connected
DWORD m_dwConnectStatus;
CImageList m_imgList;
public:
CMainFrame();
protected:
DECLARE_DYNAMIC(CMainFrame)
// Attributes
public:
// Operations
public:
// Overrides
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
// Implementation
public:
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected: // control bar embedded members
CStatusBar m_wndStatusBar;
CChildView m_wndView;
HICON m_hLedIconOn;
HICON m_hLedIconOff;
CTrueColorToolBar m_wndToolBar;
CMenuEx* m_pMainMenu;
HICON m_hPrevConnectIcon;
HICON m_hPrevServerIcon;
HICON GetIconForItem(UINT itemID);
// Generated message map functions
protected:
afx_msg LRESULT OnUserMessage(WPARAM wParam, LPARAM lParam);
afx_msg void OnUpdateConnectStatusLed(CCmdUI* pCmdUI);
afx_msg void OnUpdateServerStatusLed(CCmdUI* pCmdUI);
afx_msg void OnUpdateVtConsoleType(CCmdUI* pCmdUI);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSetFocus(CWnd *pOldWnd);
afx_msg void OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpmis);
DECLARE_MESSAGE_MAP()
public:
// afx_msg void OnViewOptions();
afx_msg void OnClose();
};