メニューからTeraPadを起動できるようになります。
Revision | e5fb146df271782044297a93667dd11efc9f0431 (tree) |
---|---|
Zeit | 2015-10-26 13:37:34 |
Autor | IWAMOTO Kouichi <sue@iwmt...> |
Commiter | IWAMOTO Kouichi |
未使用な変数等を削除
@@ -17,8 +17,6 @@ | ||
17 | 17 | static HANDLE hInst; /* Instance handle of TTX*.DLL */ |
18 | 18 | |
19 | 19 | typedef struct { |
20 | - PTTSet ts; | |
21 | - PComVar cv; | |
22 | 20 | HMENU ControlMenu; |
23 | 21 | char TeraPadPath[MAX_PATH]; |
24 | 22 | } TInstVar; |
@@ -28,11 +26,7 @@ static TInstVar FAR * pvar; | ||
28 | 26 | /* WIN32 allows multiple instances of a DLL */ |
29 | 27 | static TInstVar InstVar; |
30 | 28 | |
31 | -#define GetFileMenu(menu) GetSubMenuByChildID(menu, ID_FILE_NEWCONNECTION) | |
32 | -#define GetEditMenu(menu) GetSubMenuByChildID(menu, ID_EDIT_COPY2) | |
33 | -#define GetSetupMenu(menu) GetSubMenuByChildID(menu, ID_SETUP_TERMINAL) | |
34 | 29 | #define GetControlMenu(menu) GetSubMenuByChildID(menu, ID_CONTROL_RESETTERMINAL) |
35 | -#define GetHelpMenu(menu) GetSubMenuByChildID(menu, ID_HELP_ABOUT) | |
36 | 30 | |
37 | 31 | HMENU GetSubMenuByChildID(HMENU menu, UINT id) { |
38 | 32 | int i, j, items, subitems, cur_id; |
@@ -60,8 +54,6 @@ static void PASCAL FAR TTXInit(PTTSet ts, PComVar cv) { | ||
60 | 54 | DWORD type; |
61 | 55 | DWORD size = sizeof(buff); |
62 | 56 | |
63 | - pvar->ts = ts; | |
64 | - pvar->cv = cv; | |
65 | 57 | pvar->TeraPadPath[0] = 0; |
66 | 58 | |
67 | 59 | if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, REGKEY, 0, KEY_READ, &key) == ERROR_SUCCESS) { |
@@ -86,14 +78,6 @@ static void PASCAL FAR TTXModifyMenu(HMENU menu) { | ||
86 | 78 | } |
87 | 79 | } |
88 | 80 | |
89 | -/* | |
90 | -static void PASCAL FAR TTXModifyPopupMenu(HMENU menu) { | |
91 | - if (menu == pvar->ResizeMenu) { | |
92 | - UpdateMenu(); | |
93 | - } | |
94 | -} | |
95 | -*/ | |
96 | - | |
97 | 81 | static int PASCAL FAR TTXProcessCommand(HWND HWin, WORD cmd) { |
98 | 82 | STARTUPINFO si; |
99 | 83 | PROCESS_INFORMATION pi; |