Develop and Download Open Source Software

Browse Subversion Repository

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7783 - (hide annotations) (download) (as text)
Thu Jun 20 14:41:07 2019 UTC (4 years, 9 months ago) by zmatsuo
Original Path: trunk/teraterm/teraterm/tekwin.h
File MIME type: text/x-chdr
File size: 4222 byte(s)
メッセージ振り分け処理など整理

- MsgDlgHelp(RegisterWindowMessage(HELPMSGSTRING))
  - コモンダイアログからのメッセージ
- WM_NCHITTEST
- 不要部分削除
- 未使用変数削除
- 文字列参照変数にconst追加
1 doda 6806 /*
2     * Copyright (C) 1994-1998 T. Teranishi
3 zmatsuo 7527 * (C) 2006-2019 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, TEK window */
31    
32     /////////////////////////////////////////////////////////////////////////////
33     // CTEKWindow
34 zmatsuo 7527 #include "tmfc.h"
35     class CTEKWindow : public TTCFrameWnd
36 maya 3227 {
37     private:
38     TTEKVar tk;
39     HMENU MainMenu, EditMenu, WinMenu,
40     FileMenu, SetupMenu, HelpMenu;
41    
42     public:
43     CTEKWindow();
44     int Parse();
45     void RestoreSetup();
46     void InitMenu(HMENU *Menu);
47     void InitMenuPopup(HMENU SubMenu);
48    
49     protected:
50    
51     public:
52     //{{AFX_VIRTUAL(CTEKWindow)
53     protected:
54     virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
55     //}}AFX_VIRTUAL
56    
57     protected:
58     //{{AFX_MSG(CTEKWindow)
59 zmatsuo 7527 #define afx_msg
60     afx_msg void OnActivate(UINT nState, HWND pWndOther, BOOL bMinimized);
61 maya 3227 afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
62     afx_msg void OnDestroy();
63 doda 6801 afx_msg void OnGetMinMaxInfo(MINMAXINFO *lpMMI);
64 zmatsuo 7527 afx_msg void OnInitMenuPopup(HMENU hPopupMenu, UINT nIndex, BOOL bSysMenu);
65 maya 3227 afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
66     afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
67 zmatsuo 7527 afx_msg void OnKillFocus(HWND hNewWnd);
68     afx_msg void OnLButtonDown(UINT nFlags, POINTS point);
69     afx_msg void OnLButtonUp(UINT nFlags, POINTS point);
70     afx_msg void OnMButtonUp(UINT nFlags, POINTS point);
71     afx_msg int OnMouseActivate(HWND hDesktopWnd, UINT nHitTest, UINT message);
72     afx_msg void OnMouseMove(UINT nFlags, POINTS point);
73 maya 3227 afx_msg void OnMove(int x, int y);
74     afx_msg void OnPaint();
75 zmatsuo 7527 afx_msg void OnRButtonUp(UINT nFlags, POINTS point);
76     afx_msg void OnSetFocus(HWND hOldWnd);
77 maya 3227 afx_msg void OnSize(UINT nType, int cx, int cy);
78     afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
79     afx_msg void OnSysKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
80     afx_msg void OnSysKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
81 zmatsuo 7527 afx_msg void OnTimer(UINT_PTR nIDEvent);
82     afx_msg LRESULT OnAccelCommand(WPARAM wParam, LPARAM lParam);
83     afx_msg LRESULT OnChangeMenu(WPARAM wParam, LPARAM lParam);
84     afx_msg LRESULT OnChangeTBar(WPARAM wParam, LPARAM lParam);
85     afx_msg LRESULT OnDlgHelp(WPARAM wParam, LPARAM lParam);
86     afx_msg LRESULT OnGetSerialNo(WPARAM wParam, LPARAM lParam);
87 maya 3227 afx_msg void OnFilePrint();
88     afx_msg void OnFileExit();
89     afx_msg void OnEditCopy();
90     afx_msg void OnEditCopyScreen();
91     afx_msg void OnEditPaste();
92     afx_msg void OnEditPasteCR();
93     afx_msg void OnEditClearScreen();
94     afx_msg void OnSetupWindow();
95     afx_msg void OnSetupFont();
96     afx_msg void OnVTWin();
97     afx_msg void OnWindowWindow();
98     afx_msg void OnHelpIndex();
99     afx_msg void OnHelpUsing();
100     afx_msg void OnHelpAbout();
101     //}}AFX_MSG
102 zmatsuo 7527 // DECLARE_MESSAGE_MAP()
103     #undef afx_msg
104     virtual LRESULT Proc(UINT msg, WPARAM wp, LPARAM lp);
105 maya 3227 };

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