1 |
/* Tera Term |
2 |
Copyright(C) 1994-1998 T. Teranishi |
3 |
All rights reserved. */ |
4 |
|
5 |
/* TERATERM.EXE, VT window */ |
6 |
|
7 |
#define ENABLE_RESIZE_DISPLAY 1 |
8 |
|
9 |
class CVTWindow : public CFrameWnd |
10 |
{ |
11 |
private: |
12 |
BOOL FirstPaint, Minimized; |
13 |
|
14 |
/* mouse status */ |
15 |
BOOL LButton, MButton, RButton; |
16 |
BOOL DblClk, AfterDblClk, TplClk; |
17 |
int DblClkX, DblClkY; |
18 |
|
19 |
// "Hold" key status |
20 |
BOOL Hold; |
21 |
|
22 |
// ScrollLock key |
23 |
BOOL ScrollLock; |
24 |
|
25 |
HMENU MainMenu, FileMenu, TransMenu, EditMenu, |
26 |
SetupMenu, ControlMenu, WinMenu, HelpMenu; |
27 |
|
28 |
#ifdef ENABLE_RESIZE_DISPLAY |
29 |
// Resizing window |
30 |
BOOL Resizing; |
31 |
#endif |
32 |
|
33 |
protected: |
34 |
|
35 |
public: |
36 |
CVTWindow(); |
37 |
int Parse(); |
38 |
void ButtonUp(BOOL Paste); |
39 |
void ButtonDown(POINT p, int LMR); |
40 |
void InitMenu(HMENU *Menu); |
41 |
void InitMenuPopup(HMENU SubMenu); |
42 |
void InitPasteMenu(HMENU *Menu); |
43 |
void ResetSetup(); |
44 |
void RestoreSetup(); |
45 |
void SetupTerm(); |
46 |
void Startup(); |
47 |
void OpenTEK(); |
48 |
|
49 |
//{{AFX_VIRTUAL(CVTWindow) |
50 |
protected: |
51 |
virtual LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam); |
52 |
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam); |
53 |
//}}AFX_VIRTUAL |
54 |
|
55 |
public: |
56 |
#ifdef _DEBUG |
57 |
virtual void AssertValid() const; |
58 |
virtual void Dump(CDumpContext& dc) const; |
59 |
#endif |
60 |
|
61 |
protected: |
62 |
//{{AFX_MSG(CVTWindow) |
63 |
afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized); |
64 |
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags); |
65 |
afx_msg void OnClose(); |
66 |
afx_msg void OnDestroy(); |
67 |
afx_msg void OnDropFiles(HDROP hDropInfo); |
68 |
afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI); |
69 |
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); |
70 |
afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu); |
71 |
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); |
72 |
afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags); |
73 |
afx_msg void OnKillFocus(CWnd* pNewWnd); |
74 |
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point); |
75 |
afx_msg void OnLButtonDown(UINT nFlags, CPoint point); |
76 |
afx_msg void OnLButtonUp(UINT nFlags, CPoint point); |
77 |
afx_msg void OnMButtonDown(UINT nFlags, CPoint point); |
78 |
afx_msg void OnMButtonUp(UINT nFlags, CPoint point); |
79 |
afx_msg int OnMouseActivate(CWnd* pDesktopWnd, UINT nHitTest, UINT message); |
80 |
afx_msg void OnMouseMove(UINT nFlags, CPoint point); |
81 |
afx_msg void OnMove(int x, int y); |
82 |
afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt); |
83 |
afx_msg void OnNcLButtonDblClk(UINT nHitTest, CPoint point); |
84 |
afx_msg void OnNcRButtonDown(UINT nHitTest, CPoint point); |
85 |
afx_msg void OnPaint(); |
86 |
afx_msg void OnRButtonDown(UINT nFlags, CPoint point); |
87 |
afx_msg void OnRButtonUp(UINT nFlags, CPoint point); |
88 |
afx_msg void OnSetFocus(CWnd* pOldWnd); |
89 |
afx_msg void OnSize(UINT nType, int cx, int cy); |
90 |
afx_msg void OnSysChar(UINT nChar, UINT nRepCnt, UINT nFlags); |
91 |
afx_msg void OnSysColorChange(); |
92 |
afx_msg void OnSysCommand(UINT nID, LPARAM lParam); |
93 |
afx_msg void OnSysKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); |
94 |
afx_msg void OnSysKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags); |
95 |
afx_msg void OnTimer(UINT nIDEvent); |
96 |
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); |
97 |
//<!--by AKASI |
98 |
afx_msg LONG OnWindowPosChanging(UINT wParam, LONG lParam); |
99 |
afx_msg LONG OnSettingChange(UINT wParam, LONG lParam); |
100 |
afx_msg LONG OnEnterSizeMove(UINT wParam, LONG lParam); |
101 |
afx_msg LONG OnExitSizeMove(UINT wParam, LONG lParam); |
102 |
//--> |
103 |
afx_msg LONG OnIMEComposition(UINT wParam, LONG lParam); |
104 |
afx_msg LONG OnAccelCommand(UINT wParam, LONG lParam); |
105 |
afx_msg LONG OnChangeMenu(UINT wParam, LONG lParam); |
106 |
afx_msg LONG OnChangeTBar(UINT wParam, LONG lParam); |
107 |
afx_msg LONG OnCommNotify(UINT wParam, LONG lParam); |
108 |
afx_msg LONG OnCommOpen(UINT wParam, LONG lParam); |
109 |
afx_msg LONG OnCommStart(UINT wParam, LONG lParam); |
110 |
afx_msg LONG OnDdeEnd(UINT wParam, LONG lParam); |
111 |
afx_msg LONG OnDlgHelp(UINT wParam, LONG lParam); |
112 |
afx_msg LONG OnFileTransEnd(UINT wParam, LONG lParam); |
113 |
afx_msg LONG OnGetSerialNo(UINT wParam, LONG lParam); |
114 |
afx_msg LONG OnKeyCode(UINT wParam, LONG lParam); |
115 |
afx_msg LONG OnProtoEnd(UINT wParam, LONG lParam); |
116 |
afx_msg LONG OnChangeTitle(UINT wParam, LONG lParam); |
117 |
afx_msg LONG OnReceiveIpcMessage(UINT wParam, LONG lParam); |
118 |
afx_msg void OnFileNewConnection(); |
119 |
afx_msg void OnDuplicateSession(); |
120 |
afx_msg void OnCygwinConnection(); |
121 |
afx_msg void OnTTMenuLaunch(); |
122 |
afx_msg void OnLogMeInLaunch(); |
123 |
afx_msg void OnFileLog(); |
124 |
afx_msg void OnCommentToLog(); |
125 |
afx_msg void OnViewLog(); |
126 |
afx_msg void OnShowLogDialog(); |
127 |
afx_msg void OnReplayLog(); |
128 |
afx_msg void OnExternalSetup(); |
129 |
afx_msg void OnFileSend(); |
130 |
afx_msg void OnFileKermitRcv(); |
131 |
afx_msg void OnFileKermitGet(); |
132 |
afx_msg void OnFileKermitSend(); |
133 |
afx_msg void OnFileKermitFinish(); |
134 |
afx_msg void OnFileXRcv(); |
135 |
afx_msg void OnFileXSend(); |
136 |
afx_msg void OnFileYRcv(); |
137 |
afx_msg void OnFileYSend(); |
138 |
afx_msg void OnFileZRcv(); |
139 |
afx_msg void OnFileZSend(); |
140 |
afx_msg void OnFileBPRcv(); |
141 |
afx_msg void OnFileBPSend(); |
142 |
afx_msg void OnFileQVRcv(); |
143 |
afx_msg void OnFileQVSend(); |
144 |
afx_msg void OnFileChangeDir(); |
145 |
afx_msg void OnFilePrint(); |
146 |
afx_msg void OnFileDisconnect(); |
147 |
afx_msg void OnFileExit(); |
148 |
afx_msg void OnEditCopy(); |
149 |
afx_msg void OnEditCopyTable(); |
150 |
afx_msg void OnEditPaste(); |
151 |
afx_msg void OnEditPasteCR(); |
152 |
afx_msg void OnEditClearScreen(); |
153 |
afx_msg void OnEditClearBuffer(); |
154 |
afx_msg void OnEditCancelSelection(); |
155 |
afx_msg void OnEditSelectScreenBuffer(); |
156 |
afx_msg void OnEditSelectAllBuffer(); |
157 |
afx_msg void OnSetupTerminal(); |
158 |
afx_msg void OnSetupWindow(); |
159 |
afx_msg void OnSetupFont(); |
160 |
afx_msg void OnSetupKeyboard(); |
161 |
afx_msg void OnSetupSerialPort(); |
162 |
afx_msg void OnSetupTCPIP(); |
163 |
afx_msg void OnSetupGeneral(); |
164 |
afx_msg void OnSetupSave(); |
165 |
afx_msg void OnSetupRestore(); |
166 |
afx_msg void OnSetupLoadKeyMap(); |
167 |
afx_msg void OnControlResetTerminal(); |
168 |
afx_msg void OnControlBroadcastCommand(); |
169 |
afx_msg void OnControlAreYouThere(); |
170 |
afx_msg void OnControlSendBreak(); |
171 |
afx_msg void OnControlResetPort(); |
172 |
afx_msg void OnControlOpenTEK(); |
173 |
afx_msg void OnControlCloseTEK(); |
174 |
afx_msg void OnControlMacro(); |
175 |
afx_msg void OnWindowWindow(); |
176 |
afx_msg void OnHelpIndex(); |
177 |
afx_msg void OnHelpUsing(); |
178 |
afx_msg void OnHelpAbout(); |
179 |
//}}AFX_MSG |
180 |
DECLARE_MESSAGE_MAP(); |
181 |
}; |