Desenvolver e Download de Software Open Source

Browse Subversion Repository

Annotation of /trunk/teraterm/teraterm/vtwin.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10807 - (hide annotations) (download) (as text)
Sun Jul 23 14:23:26 2023 UTC (9 months, 4 weeks ago) by zmatsuo
File MIME type: text/x-chdr
File size: 8477 byte(s)
ホストに接続できなかったとき表示されるダイアログにhelpボタンを追加

- MessageBox() に MB_HELP を追加
- Q&Aに追記
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 doda 8445 // for debug
70     #if UNICODE_DEBUG
71     TipWin *TipWinCodeDebug;
72     int CtrlKeyState; // 0:�J�n/1:����/2:����/3:����(�\������)
73     DWORD CtrlKeyDownTick; // ������������tick
74     #endif
75    
76 yasuhide 8143 // TipWin
77     CTipWin* TipWin;
78    
79 zmatsuo 8576 // for html help
80 zmatsuo 8225 LONG HelpId;
81    
82 maya 3227 public:
83 zmatsuo 7916 CVTWindow(HINSTANCE hInstance);
84 yasuhide 8268 ~CVTWindow();
85 maya 3227 int Parse();
86     void ButtonUp(BOOL Paste);
87     void ButtonDown(POINT p, int LMR);
88     void InitMenu(HMENU *Menu);
89     void InitMenuPopup(HMENU SubMenu);
90     void InitPasteMenu(HMENU *Menu);
91     void ResetSetup();
92     void RestoreSetup();
93     void SetupTerm();
94     void Startup();
95     void OpenTEK();
96    
97 zmatsuo 7784 protected:
98 maya 3227 virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
99 zmatsuo 7784 void OnActivate(UINT nState, HWND pWndOther, BOOL bMinimized);
100 zmatsuo 8337 void OnChar(WPARAM nChar, UINT nRepCnt, UINT nFlags);
101 zmatsuo 8827 LRESULT OnUniChar(WPARAM wParam, LPARAM lParam);
102 zmatsuo 7784 void OnClose();
103     void OnAllClose();
104     void OnDestroy();
105     void OnDropFiles(HDROP hDropInfo);
106     void OnGetMinMaxInfo(MINMAXINFO *lpMMI);
107     void OnHScroll(UINT nSBCode, UINT nPos, HWND pScrollBar);
108     void OnInitMenuPopup(HMENU hPopupMenu, UINT nIndex, BOOL bSysMenu);
109 zmatsuo 8337 void OnKeyDown(WPARAM nChar, UINT nRepCnt, UINT nFlags);
110     void OnKeyUp(WPARAM nChar, UINT nRepCnt, UINT nFlags);
111 zmatsuo 7784 void OnKillFocus(HWND hNewWnd);
112 zmatsuo 8337 void OnLButtonDblClk(WPARAM nFlags, POINTS point);
113     void OnLButtonDown(WPARAM nFlags, POINTS point);
114     void OnLButtonUp(WPARAM nFlags, POINTS point);
115     void OnMButtonDown(WPARAM nFlags, POINTS point);
116     void OnMButtonUp(WPARAM nFlags, POINTS point);
117 zmatsuo 8677 LRESULT OnMouseActivate(HWND pDesktopWnd, UINT nHitTest, UINT message);
118 zmatsuo 8337 void OnMouseMove(WPARAM nFlags, POINTS point);
119 zmatsuo 7784 void OnMove(int x, int y);
120     BOOL OnMouseWheel(UINT nFlags, short zDelta, POINTS pt);
121     void OnNcLButtonDblClk(UINT nHitTest, POINTS point);
122     void OnNcRButtonDown(UINT nHitTest, POINTS point);
123     void OnPaint();
124     void OnRButtonDown(UINT nFlags, POINTS point);
125     void OnRButtonUp(UINT nFlags, POINTS point);
126     void OnSetFocus(HWND hOldWnd);
127 zmatsuo 8337 void OnSize(WPARAM nType, int cx, int cy);
128     void OnSizing(WPARAM fwSide, LPRECT pRect);
129     void OnSysChar(WPARAM nChar, UINT nRepCnt, UINT nFlags);
130     void OnSysCommand(WPARAM nID, LPARAM lParam);
131     void OnSysKeyDown(WPARAM nChar, UINT nRepCnt, UINT nFlags);
132     void OnSysKeyUp(WPARAM nChar, UINT nRepCnt, UINT nFlags);
133 zmatsuo 7784 void OnTimer(UINT_PTR nIDEvent);
134     void OnVScroll(UINT nSBCode, UINT nPos, HWND pScrollBar);
135     BOOL OnDeviceChange(UINT nEventType, DWORD_PTR dwData);
136     LRESULT OnWindowPosChanging(WPARAM wParam, LPARAM lParam);
137     LRESULT OnSettingChange(WPARAM wParam, LPARAM lParam);
138     LRESULT OnEnterSizeMove(WPARAM wParam, LPARAM lParam);
139     LRESULT OnExitSizeMove(WPARAM wParam, LPARAM lParam);
140     LRESULT OnIMEStartComposition(WPARAM wParam, LPARAM lParam);
141     LRESULT OnIMEEndComposition(WPARAM wParam, LPARAM lParam);
142 zmatsuo 7896 LRESULT OnIMEComposition(WPARAM wParam, LPARAM lParam);
143 zmatsuo 7784 LRESULT OnIMEInputChange(WPARAM wParam, LPARAM lParam);
144     LRESULT OnIMENotify(WPARAM wParam, LPARAM lParam);
145     LRESULT OnIMERequest(WPARAM wParam, LPARAM lParam);
146     LRESULT OnAccelCommand(WPARAM wParam, LPARAM lParam);
147     LRESULT OnChangeMenu(WPARAM wParam, LPARAM lParam);
148     LRESULT OnChangeTBar(WPARAM wParam, LPARAM lParam);
149     LRESULT OnCommNotify(WPARAM wParam, LPARAM lParam);
150     LRESULT OnCommOpen(WPARAM wParam, LPARAM lParam);
151     LRESULT OnCommStart(WPARAM wParam, LPARAM lParam);
152     LRESULT OnDdeEnd(WPARAM wParam, LPARAM lParam);
153     LRESULT OnDlgHelp(WPARAM wParam, LPARAM lParam);
154     LRESULT OnFileTransEnd(WPARAM wParam, LPARAM lParam);
155     LRESULT OnGetSerialNo(WPARAM wParam, LPARAM lParam);
156     LRESULT OnKeyCode(WPARAM wParam, LPARAM lParam);
157     LRESULT OnProtoEnd(WPARAM wParam, LPARAM lParam);
158     LRESULT OnChangeTitle(WPARAM wParam, LPARAM lParam);
159     LRESULT OnReceiveIpcMessage(WPARAM wParam, LPARAM lParam);
160     LRESULT OnNonConfirmClose(WPARAM wParam, LPARAM lParam);
161     LRESULT OnNotifyIcon(WPARAM wParam, LPARAM lParam);
162     void OnFileNewConnection();
163     void OnDuplicateSession();
164     void OnCygwinConnection();
165     void OnTTMenuLaunch();
166     void OnFileLog();
167     void OnCommentToLog();
168     void OnViewLog();
169     void OnShowLogDialog();
170 doda 8396 void OnPauseLog();
171     void OnStopLog();
172 zmatsuo 7784 void OnReplayLog();
173     void OnExternalSetup();
174     void OnFileSend();
175     void OnFileKermitRcv();
176     void OnFileKermitGet();
177     void OnFileKermitSend();
178     void OnFileKermitFinish();
179     void OnFileXRcv();
180     void OnFileXSend();
181     void OnFileYRcv();
182     void OnFileYSend();
183     void OnFileZRcv();
184     void OnFileZSend();
185     void OnFileBPRcv();
186     void OnFileBPSend();
187     void OnFileQVRcv();
188     void OnFileQVSend();
189     void OnFileChangeDir();
190     void OnFilePrint();
191     void OnFileDisconnect();
192     void OnFileExit();
193     void OnEditCopy();
194     void OnEditCopyTable();
195     void OnEditPaste();
196     void OnEditPasteCR();
197     void OnEditClearScreen();
198     void OnEditClearBuffer();
199     void OnEditCancelSelection();
200     void OnEditSelectScreenBuffer();
201     void OnEditSelectAllBuffer();
202     void OnSetupTerminal();
203     void OnSetupWindow();
204     void OnSetupFont();
205     void OnSetupDlgFont();
206     void OnSetupKeyboard();
207     void OnSetupSerialPort();
208     void OnSetupTCPIP();
209     void OnSetupGeneral();
210     void OnSetupSave();
211     void OnSetupRestore();
212     void OnOpenSetupDirectory();
213     void OnSetupLoadKeyMap();
214     void OnControlResetTerminal();
215     void OnControlResetRemoteTitle();
216     void OnControlBroadcastCommand();
217     void OnControlAreYouThere();
218     void OnControlSendBreak();
219     void OnControlResetPort();
220     void OnControlOpenTEK();
221     void OnControlCloseTEK();
222     void OnControlMacro();
223     void OnShowMacroWindow();
224     void OnWindowWindow();
225     void OnWindowMinimizeAll();
226     void OnWindowCascade();
227     void OnWindowStacked();
228     void OnWindowSidebySide();
229     void OnWindowRestoreAll();
230     void OnWindowUndo();
231     void OnHelpIndex();
232     void OnHelpAbout();
233     LRESULT OnDropNotify(WPARAM ShowMenu, LPARAM lParam);
234     LRESULT OnDpiChanged(WPARAM wParam, LPARAM lParam);
235 maya 3699 void Disconnect(BOOL confirm);
236 zmatsuo 7528 virtual LRESULT Proc(UINT msg, WPARAM wp, LPARAM lp);
237 doda 8445
238     private:
239     void CodePopup(int client_x, int client_y);
240 zmatsuo 10059 void OpenExternalSetup(int page);
241 zmatsuo 10660 void SetColor();
242 maya 3227 };
243     #endif
244 zmatsuo 10807
245     #ifdef __cplusplus
246     extern "C" {
247     #endif
248    
249     void VtwinSetHelpId(DWORD data);
250    
251     #ifdef __cplusplus
252     }
253     #endif

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