| 1 |
doda |
6806 |
/* |
| 2 |
|
|
* Copyright (C) 1994-1998 T. Teranishi |
| 3 |
|
|
* (C) 2006-2017 TeraTerm Project |
| 4 |
|
|
* All rights reserved. |
| 5 |
|
|
* |
| 6 |
|
|
* Redistribution and use in source and binary forms, with or without modification, |
| 7 |
|
|
* are permitted provided that the following conditions are met: |
| 8 |
|
|
* |
| 9 |
|
|
* 1. Redistributions of source code must retain the above copyright notice, |
| 10 |
|
|
* this list of conditions and the following disclaimer. |
| 11 |
|
|
* 2. Redistributions in binary form must reproduce the above copyright notice, |
| 12 |
|
|
* this list of conditions and the following disclaimer in the documentation |
| 13 |
|
|
* and/or other materials provided with the distribution. |
| 14 |
|
|
* 3. The name of the author may not be used to endorse or promote products derived |
| 15 |
|
|
* from this software without specific prior written permission. |
| 16 |
|
|
* |
| 17 |
|
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, |
| 18 |
|
|
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 19 |
|
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY |
| 20 |
|
|
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
| 21 |
|
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, |
| 22 |
|
|
* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
| 23 |
|
|
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 24 |
|
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY |
| 25 |
|
|
* OF SUCH DAMAGE. |
| 26 |
|
|
*/ |
| 27 |
maya |
3227 |
|
| 28 |
|
|
/* TERATERM.EXE, TEK window */ |
| 29 |
|
|
|
| 30 |
|
|
///////////////////////////////////////////////////////////////////////////// |
| 31 |
|
|
// CTEKWindow |
| 32 |
|
|
|
| 33 |
|
|
class CTEKWindow : public CFrameWnd |
| 34 |
|
|
{ |
| 35 |
|
|
private: |
| 36 |
|
|
TTEKVar tk; |
| 37 |
|
|
#ifndef NO_I18N |
| 38 |
|
|
HMENU MainMenu, EditMenu, WinMenu, |
| 39 |
|
|
FileMenu, SetupMenu, HelpMenu; |
| 40 |
|
|
#else |
| 41 |
|
|
HMENU MainMenu, EditMenu, WinMenu; |
| 42 |
|
|
#endif |
| 43 |
|
|
|
| 44 |
|
|
public: |
| 45 |
|
|
CTEKWindow(); |
| 46 |
|
|
int Parse(); |
| 47 |
|
|
void RestoreSetup(); |
| 48 |
|
|
void InitMenu(HMENU *Menu); |
| 49 |
|
|
void InitMenuPopup(HMENU SubMenu); |
| 50 |
|
|
|
| 51 |
|
|
protected: |
| 52 |
|
|
|
| 53 |
|
|
public: |
| 54 |
|
|
//{{AFX_VIRTUAL(CTEKWindow) |
| 55 |
|
|
protected: |
| 56 |
|
|
virtual LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam); |
| 57 |
|
|
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam); |
| 58 |
|
|
//}}AFX_VIRTUAL |
| 59 |
|
|
|
| 60 |
|
|
protected: |
| 61 |
|
|
//{{AFX_MSG(CTEKWindow) |
| 62 |
|
|
afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized); |
| 63 |
|
|
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags); |
| 64 |
|
|
afx_msg void OnDestroy(); |
| 65 |
doda |
6801 |
afx_msg void OnGetMinMaxInfo(MINMAXINFO *lpMMI); |
| 66 |
maya |
3227 |
afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu); |
| 67 |
|
|
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); |
| 68 |
|
|
afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags); |
| 69 |
|
|
afx_msg void OnKillFocus(CWnd* pNewWnd); |
| 70 |
|
|
afx_msg void OnLButtonDown(UINT nFlags, CPoint point); |
| 71 |
|
|
afx_msg void OnLButtonUp(UINT nFlags, CPoint point); |
| 72 |
|
|
afx_msg void OnMButtonUp(UINT nFlags, CPoint point); |
| 73 |
|
|
afx_msg int OnMouseActivate(CWnd* pDesktopWnd, UINT nHitTest, UINT message); |
| 74 |
|
|
afx_msg void OnMouseMove(UINT nFlags, CPoint point); |
| 75 |
|
|
afx_msg void OnMove(int x, int y); |
| 76 |
|
|
afx_msg void OnPaint(); |
| 77 |
|
|
afx_msg void OnRButtonUp(UINT nFlags, CPoint point); |
| 78 |
|
|
afx_msg void OnSetFocus(CWnd* pOldWnd); |
| 79 |
|
|
afx_msg void OnSize(UINT nType, int cx, int cy); |
| 80 |
|
|
afx_msg void OnSysCommand(UINT nID, LPARAM lParam); |
| 81 |
|
|
afx_msg void OnSysKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); |
| 82 |
|
|
afx_msg void OnSysKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags); |
| 83 |
|
|
afx_msg void OnTimer(UINT nIDEvent); |
| 84 |
|
|
afx_msg LONG OnAccelCommand(UINT wParam, LONG lParam); |
| 85 |
|
|
afx_msg LONG OnChangeMenu(UINT wParam, LONG lParam); |
| 86 |
|
|
afx_msg LONG OnChangeTBar(UINT wParam, LONG lParam); |
| 87 |
|
|
afx_msg LONG OnDlgHelp(UINT wParam, LONG lParam); |
| 88 |
|
|
afx_msg LONG OnGetSerialNo(UINT wParam, LONG lParam); |
| 89 |
|
|
afx_msg void OnFilePrint(); |
| 90 |
|
|
afx_msg void OnFileExit(); |
| 91 |
|
|
afx_msg void OnEditCopy(); |
| 92 |
|
|
afx_msg void OnEditCopyScreen(); |
| 93 |
|
|
afx_msg void OnEditPaste(); |
| 94 |
|
|
afx_msg void OnEditPasteCR(); |
| 95 |
|
|
afx_msg void OnEditClearScreen(); |
| 96 |
|
|
afx_msg void OnSetupWindow(); |
| 97 |
|
|
afx_msg void OnSetupFont(); |
| 98 |
|
|
afx_msg void OnVTWin(); |
| 99 |
|
|
afx_msg void OnWindowWindow(); |
| 100 |
|
|
afx_msg void OnHelpIndex(); |
| 101 |
|
|
afx_msg void OnHelpUsing(); |
| 102 |
|
|
afx_msg void OnHelpAbout(); |
| 103 |
|
|
//}}AFX_MSG |
| 104 |
|
|
DECLARE_MESSAGE_MAP() |
| 105 |
|
|
}; |