Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /branches/ttcomtester/teraterm/teraterm/vtwin.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10521 - (hide annotations) (download) (as text)
Fri Jan 20 16:03:38 2023 UTC (14 months, 2 weeks ago) by zmatsuo
File MIME type: text/x-chdr
File size: 8384 byte(s)
add communication test tool
1 doda 6806 /*
2     * Copyright (C) 1994-1998 T. Teranishi
3 nmaya 9048 * (C) 2004- TeraTerm Project
4 doda 6806 * All rights reserved.
5     *
6 doda 6841 * Redistribution and use in source and binary forms, with or without
7     * modification, are permitted provided that the following conditions
8     * are met:
9 doda 6806 *
10 doda 6841 * 1. Redistributions of source code must retain the above copyright
11     * notice, this list of conditions and the following disclaimer.
12     * 2. Redistributions in binary form must reproduce the above copyright
13     * notice, this list of conditions and the following disclaimer in the
14     * documentation and/or other materials provided with the distribution.
15     * 3. The name of the author may not be used to endorse or promote products
16     * derived from this software without specific prior written permission.
17 doda 6806 *
18 doda 6841 * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
19     * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20     * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21     * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
22     * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23     * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24     * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25     * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26     * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27     * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 doda 6806 */
29 maya 3227
30     /* TERATERM.EXE, VT window */
31    
32     #ifdef __cplusplus
33 yasuhide 8143 #include "tipwin.h"
34 zmatsuo 7528 #include "tmfc.h"
35 doda 8445 #include "unicode_test.h"
36     #include "tipwin.h"
37 zmatsuo 7528
38     class CVTWindow : public TTCFrameWnd
39 maya 3227 {
40     private:
41     BOOL FirstPaint, Minimized;
42    
43     /* mouse status */
44     BOOL LButton, MButton, RButton;
45     BOOL DblClk, AfterDblClk, TplClk;
46     int DblClkX, DblClkY;
47    
48     // "Hold" key status
49     BOOL Hold;
50    
51     // ScrollLock key
52     BOOL ScrollLock;
53    
54     HMENU MainMenu, FileMenu, TransMenu, EditMenu,
55     SetupMenu, ControlMenu, WinMenu, HelpMenu;
56    
57 zmatsuo 7148 // drag and drop handle
58 zmatsuo 10402 void DropInit();
59     void DropUninit();
60     struct DropData_tag *DropData;
61 doda 8445 wchar_t **DropLists;
62 zmatsuo 7148 int DropListCount;
63     void DropListFree();
64    
65 zmatsuo 7390 // window attribute
66     BYTE Alpha;
67     void SetWindowAlpha(BYTE alpha);
68    
69 zmatsuo 7717 // DPI
70     BOOL IgnoreSizeMessage;
71    
72 doda 8445 // for debug
73     #if UNICODE_DEBUG
74     TipWin *TipWinCodeDebug;
75     int CtrlKeyState; // 0:�J�n/1:����/2:����/3:����(�\������)
76     DWORD CtrlKeyDownTick; // ������������tick
77     #endif
78    
79 yasuhide 8143 // TipWin
80     CTipWin* TipWin;
81    
82 zmatsuo 8576 // for html help
83 zmatsuo 8225 LONG HelpId;
84    
85 maya 3227 public:
86 zmatsuo 7916 CVTWindow(HINSTANCE hInstance);
87 yasuhide 8268 ~CVTWindow();
88 maya 3227 int Parse();
89     void ButtonUp(BOOL Paste);
90     void ButtonDown(POINT p, int LMR);
91     void InitMenu(HMENU *Menu);
92     void InitMenuPopup(HMENU SubMenu);
93     void InitPasteMenu(HMENU *Menu);
94     void ResetSetup();
95     void RestoreSetup();
96     void SetupTerm();
97     void Startup();
98     void OpenTEK();
99    
100 zmatsuo 7784 protected:
101 maya 3227 virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
102 zmatsuo 7784 void OnActivate(UINT nState, HWND pWndOther, BOOL bMinimized);
103 zmatsuo 8337 void OnChar(WPARAM nChar, UINT nRepCnt, UINT nFlags);
104 zmatsuo 8827 LRESULT OnUniChar(WPARAM wParam, LPARAM lParam);
105 zmatsuo 7784 void OnClose();
106     void OnAllClose();
107     void OnDestroy();
108     void OnDropFiles(HDROP hDropInfo);
109     void OnGetMinMaxInfo(MINMAXINFO *lpMMI);
110     void OnHScroll(UINT nSBCode, UINT nPos, HWND pScrollBar);
111     void OnInitMenuPopup(HMENU hPopupMenu, UINT nIndex, BOOL bSysMenu);
112 zmatsuo 8337 void OnKeyDown(WPARAM nChar, UINT nRepCnt, UINT nFlags);
113     void OnKeyUp(WPARAM nChar, UINT nRepCnt, UINT nFlags);
114 zmatsuo 7784 void OnKillFocus(HWND hNewWnd);
115 zmatsuo 8337 void OnLButtonDblClk(WPARAM nFlags, POINTS point);
116     void OnLButtonDown(WPARAM nFlags, POINTS point);
117     void OnLButtonUp(WPARAM nFlags, POINTS point);
118     void OnMButtonDown(WPARAM nFlags, POINTS point);
119     void OnMButtonUp(WPARAM nFlags, POINTS point);
120 zmatsuo 8677 LRESULT OnMouseActivate(HWND pDesktopWnd, UINT nHitTest, UINT message);
121 zmatsuo 8337 void OnMouseMove(WPARAM nFlags, POINTS point);
122 zmatsuo 7784 void OnMove(int x, int y);
123     BOOL OnMouseWheel(UINT nFlags, short zDelta, POINTS pt);
124     void OnNcLButtonDblClk(UINT nHitTest, POINTS point);
125     void OnNcRButtonDown(UINT nHitTest, POINTS point);
126     void OnPaint();
127     void OnRButtonDown(UINT nFlags, POINTS point);
128     void OnRButtonUp(UINT nFlags, POINTS point);
129     void OnSetFocus(HWND hOldWnd);
130 zmatsuo 8337 void OnSize(WPARAM nType, int cx, int cy);
131     void OnSizing(WPARAM fwSide, LPRECT pRect);
132     void OnSysChar(WPARAM nChar, UINT nRepCnt, UINT nFlags);
133     void OnSysCommand(WPARAM nID, LPARAM lParam);
134     void OnSysKeyDown(WPARAM nChar, UINT nRepCnt, UINT nFlags);
135     void OnSysKeyUp(WPARAM nChar, UINT nRepCnt, UINT nFlags);
136 zmatsuo 7784 void OnTimer(UINT_PTR nIDEvent);
137     void OnVScroll(UINT nSBCode, UINT nPos, HWND pScrollBar);
138     BOOL OnDeviceChange(UINT nEventType, DWORD_PTR dwData);
139     LRESULT OnWindowPosChanging(WPARAM wParam, LPARAM lParam);
140     LRESULT OnSettingChange(WPARAM wParam, LPARAM lParam);
141     LRESULT OnEnterSizeMove(WPARAM wParam, LPARAM lParam);
142     LRESULT OnExitSizeMove(WPARAM wParam, LPARAM lParam);
143     LRESULT OnIMEStartComposition(WPARAM wParam, LPARAM lParam);
144     LRESULT OnIMEEndComposition(WPARAM wParam, LPARAM lParam);
145 zmatsuo 7896 LRESULT OnIMEComposition(WPARAM wParam, LPARAM lParam);
146 zmatsuo 7784 LRESULT OnIMEInputChange(WPARAM wParam, LPARAM lParam);
147     LRESULT OnIMENotify(WPARAM wParam, LPARAM lParam);
148     LRESULT OnIMERequest(WPARAM wParam, LPARAM lParam);
149     LRESULT OnAccelCommand(WPARAM wParam, LPARAM lParam);
150     LRESULT OnChangeMenu(WPARAM wParam, LPARAM lParam);
151     LRESULT OnChangeTBar(WPARAM wParam, LPARAM lParam);
152     LRESULT OnCommNotify(WPARAM wParam, LPARAM lParam);
153     LRESULT OnCommOpen(WPARAM wParam, LPARAM lParam);
154     LRESULT OnCommStart(WPARAM wParam, LPARAM lParam);
155     LRESULT OnDdeEnd(WPARAM wParam, LPARAM lParam);
156     LRESULT OnDlgHelp(WPARAM wParam, LPARAM lParam);
157     LRESULT OnFileTransEnd(WPARAM wParam, LPARAM lParam);
158     LRESULT OnGetSerialNo(WPARAM wParam, LPARAM lParam);
159     LRESULT OnKeyCode(WPARAM wParam, LPARAM lParam);
160     LRESULT OnProtoEnd(WPARAM wParam, LPARAM lParam);
161     LRESULT OnChangeTitle(WPARAM wParam, LPARAM lParam);
162     LRESULT OnReceiveIpcMessage(WPARAM wParam, LPARAM lParam);
163     LRESULT OnNonConfirmClose(WPARAM wParam, LPARAM lParam);
164     LRESULT OnNotifyIcon(WPARAM wParam, LPARAM lParam);
165     void OnFileNewConnection();
166     void OnDuplicateSession();
167     void OnCygwinConnection();
168     void OnTTMenuLaunch();
169     void OnFileLog();
170     void OnCommentToLog();
171     void OnViewLog();
172     void OnShowLogDialog();
173 doda 8396 void OnPauseLog();
174     void OnStopLog();
175 zmatsuo 7784 void OnReplayLog();
176     void OnExternalSetup();
177     void OnFileSend();
178     void OnFileKermitRcv();
179     void OnFileKermitGet();
180     void OnFileKermitSend();
181     void OnFileKermitFinish();
182     void OnFileXRcv();
183     void OnFileXSend();
184     void OnFileYRcv();
185     void OnFileYSend();
186     void OnFileZRcv();
187     void OnFileZSend();
188     void OnFileBPRcv();
189     void OnFileBPSend();
190     void OnFileQVRcv();
191     void OnFileQVSend();
192     void OnFileChangeDir();
193     void OnFilePrint();
194     void OnFileDisconnect();
195     void OnFileExit();
196     void OnEditCopy();
197     void OnEditCopyTable();
198     void OnEditPaste();
199     void OnEditPasteCR();
200     void OnEditClearScreen();
201     void OnEditClearBuffer();
202     void OnEditCancelSelection();
203     void OnEditSelectScreenBuffer();
204     void OnEditSelectAllBuffer();
205     void OnSetupTerminal();
206     void OnSetupWindow();
207     void OnSetupFont();
208     void OnSetupDlgFont();
209     void OnSetupKeyboard();
210     void OnSetupSerialPort();
211     void OnSetupTCPIP();
212     void OnSetupGeneral();
213     void OnSetupSave();
214     void OnSetupRestore();
215     void OnOpenSetupDirectory();
216     void OnSetupLoadKeyMap();
217     void OnControlResetTerminal();
218     void OnControlResetRemoteTitle();
219     void OnControlBroadcastCommand();
220     void OnControlAreYouThere();
221     void OnControlSendBreak();
222     void OnControlResetPort();
223     void OnControlOpenTEK();
224     void OnControlCloseTEK();
225     void OnControlMacro();
226     void OnShowMacroWindow();
227     void OnWindowWindow();
228     void OnWindowMinimizeAll();
229     void OnWindowCascade();
230     void OnWindowStacked();
231     void OnWindowSidebySide();
232     void OnWindowRestoreAll();
233     void OnWindowUndo();
234     void OnHelpIndex();
235     void OnHelpAbout();
236     LRESULT OnDropNotify(WPARAM ShowMenu, LPARAM lParam);
237     LRESULT OnDpiChanged(WPARAM wParam, LPARAM lParam);
238 maya 3699 void Disconnect(BOOL confirm);
239 zmatsuo 7528 virtual LRESULT Proc(UINT msg, WPARAM wp, LPARAM lp);
240 doda 8445
241     private:
242     void CodePopup(int client_x, int client_y);
243 zmatsuo 10059 void OpenExternalSetup(int page);
244 maya 3227 };
245     #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26