| 1 |
maya |
3227 |
/* Tera Term |
| 2 |
|
|
Copyright(C) 1994-1998 T. Teranishi |
| 3 |
|
|
All rights reserved. */ |
| 4 |
|
|
|
| 5 |
|
|
/* TERATERM.EXE, TEK window */ |
| 6 |
|
|
|
| 7 |
|
|
///////////////////////////////////////////////////////////////////////////// |
| 8 |
|
|
// CTEKWindow |
| 9 |
|
|
|
| 10 |
|
|
class CTEKWindow : public CFrameWnd |
| 11 |
|
|
{ |
| 12 |
|
|
private: |
| 13 |
|
|
TTEKVar tk; |
| 14 |
|
|
#ifndef NO_I18N |
| 15 |
|
|
HMENU MainMenu, EditMenu, WinMenu, |
| 16 |
|
|
FileMenu, SetupMenu, HelpMenu; |
| 17 |
|
|
#else |
| 18 |
|
|
HMENU MainMenu, EditMenu, WinMenu; |
| 19 |
|
|
#endif |
| 20 |
|
|
|
| 21 |
|
|
public: |
| 22 |
|
|
CTEKWindow(); |
| 23 |
|
|
int Parse(); |
| 24 |
|
|
void RestoreSetup(); |
| 25 |
|
|
void InitMenu(HMENU *Menu); |
| 26 |
|
|
void InitMenuPopup(HMENU SubMenu); |
| 27 |
|
|
|
| 28 |
|
|
protected: |
| 29 |
|
|
|
| 30 |
|
|
public: |
| 31 |
|
|
//{{AFX_VIRTUAL(CTEKWindow) |
| 32 |
|
|
protected: |
| 33 |
|
|
virtual LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam); |
| 34 |
|
|
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam); |
| 35 |
|
|
//}}AFX_VIRTUAL |
| 36 |
|
|
|
| 37 |
|
|
protected: |
| 38 |
|
|
//{{AFX_MSG(CTEKWindow) |
| 39 |
|
|
afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized); |
| 40 |
|
|
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags); |
| 41 |
|
|
afx_msg void OnDestroy(); |
| 42 |
|
|
afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI); |
| 43 |
|
|
afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu); |
| 44 |
|
|
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); |
| 45 |
|
|
afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags); |
| 46 |
|
|
afx_msg void OnKillFocus(CWnd* pNewWnd); |
| 47 |
|
|
afx_msg void OnLButtonDown(UINT nFlags, CPoint point); |
| 48 |
|
|
afx_msg void OnLButtonUp(UINT nFlags, CPoint point); |
| 49 |
|
|
afx_msg void OnMButtonUp(UINT nFlags, CPoint point); |
| 50 |
|
|
afx_msg int OnMouseActivate(CWnd* pDesktopWnd, UINT nHitTest, UINT message); |
| 51 |
|
|
afx_msg void OnMouseMove(UINT nFlags, CPoint point); |
| 52 |
|
|
afx_msg void OnMove(int x, int y); |
| 53 |
|
|
afx_msg void OnPaint(); |
| 54 |
|
|
afx_msg void OnRButtonUp(UINT nFlags, CPoint point); |
| 55 |
|
|
afx_msg void OnSetFocus(CWnd* pOldWnd); |
| 56 |
|
|
afx_msg void OnSize(UINT nType, int cx, int cy); |
| 57 |
|
|
afx_msg void OnSysCommand(UINT nID, LPARAM lParam); |
| 58 |
|
|
afx_msg void OnSysKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); |
| 59 |
|
|
afx_msg void OnSysKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags); |
| 60 |
|
|
afx_msg void OnTimer(UINT nIDEvent); |
| 61 |
|
|
afx_msg LONG OnAccelCommand(UINT wParam, LONG lParam); |
| 62 |
|
|
afx_msg LONG OnChangeMenu(UINT wParam, LONG lParam); |
| 63 |
|
|
afx_msg LONG OnChangeTBar(UINT wParam, LONG lParam); |
| 64 |
|
|
afx_msg LONG OnDlgHelp(UINT wParam, LONG lParam); |
| 65 |
|
|
afx_msg LONG OnGetSerialNo(UINT wParam, LONG lParam); |
| 66 |
|
|
afx_msg void OnFilePrint(); |
| 67 |
|
|
afx_msg void OnFileExit(); |
| 68 |
|
|
afx_msg void OnEditCopy(); |
| 69 |
|
|
afx_msg void OnEditCopyScreen(); |
| 70 |
|
|
afx_msg void OnEditPaste(); |
| 71 |
|
|
afx_msg void OnEditPasteCR(); |
| 72 |
|
|
afx_msg void OnEditClearScreen(); |
| 73 |
|
|
afx_msg void OnSetupWindow(); |
| 74 |
|
|
afx_msg void OnSetupFont(); |
| 75 |
|
|
afx_msg void OnVTWin(); |
| 76 |
|
|
afx_msg void OnWindowWindow(); |
| 77 |
|
|
afx_msg void OnHelpIndex(); |
| 78 |
|
|
afx_msg void OnHelpUsing(); |
| 79 |
|
|
afx_msg void OnHelpAbout(); |
| 80 |
|
|
//}}AFX_MSG |
| 81 |
|
|
DECLARE_MESSAGE_MAP() |
| 82 |
|
|
}; |