Open-Source-Software-Entwicklung und Downloads

Browse Subversion Repository

Diff of /trunk/teraterm/teraterm/vtwin.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.3226  
changed lines
  Added in v.3227

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