• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythonwindowsphpgamebathyscapheguic翻訳omegattwitterframeworkbtronvb.net計画中(planning stage)testdomarduinodirectxpreviewerゲームエンジン

メニューからTeraPadを起動できるようになります。


Commit MetaInfo

修订版e5fb146df271782044297a93667dd11efc9f0431 (tree)
时间2015-10-26 13:37:34
作者IWAMOTO Kouichi <sue@iwmt...>
CommiterIWAMOTO Kouichi

Log Message

未使用な変数等を削除

更改概述

差异

--- a/TTXTeraPad.c
+++ b/TTXTeraPad.c
@@ -17,8 +17,6 @@
1717 static HANDLE hInst; /* Instance handle of TTX*.DLL */
1818
1919 typedef struct {
20- PTTSet ts;
21- PComVar cv;
2220 HMENU ControlMenu;
2321 char TeraPadPath[MAX_PATH];
2422 } TInstVar;
@@ -28,11 +26,7 @@ static TInstVar FAR * pvar;
2826 /* WIN32 allows multiple instances of a DLL */
2927 static TInstVar InstVar;
3028
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)
3429 #define GetControlMenu(menu) GetSubMenuByChildID(menu, ID_CONTROL_RESETTERMINAL)
35-#define GetHelpMenu(menu) GetSubMenuByChildID(menu, ID_HELP_ABOUT)
3630
3731 HMENU GetSubMenuByChildID(HMENU menu, UINT id) {
3832 int i, j, items, subitems, cur_id;
@@ -60,8 +54,6 @@ static void PASCAL FAR TTXInit(PTTSet ts, PComVar cv) {
6054 DWORD type;
6155 DWORD size = sizeof(buff);
6256
63- pvar->ts = ts;
64- pvar->cv = cv;
6557 pvar->TeraPadPath[0] = 0;
6658
6759 if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, REGKEY, 0, KEY_READ, &key) == ERROR_SUCCESS) {
@@ -86,14 +78,6 @@ static void PASCAL FAR TTXModifyMenu(HMENU menu) {
8678 }
8779 }
8880
89-/*
90-static void PASCAL FAR TTXModifyPopupMenu(HMENU menu) {
91- if (menu == pvar->ResizeMenu) {
92- UpdateMenu();
93- }
94-}
95-*/
96-
9781 static int PASCAL FAR TTXProcessCommand(HWND HWin, WORD cmd) {
9882 STARTUPINFO si;
9983 PROCESS_INFORMATION pi;