Changeset 1122 for trunk/dll/tools.c
- Timestamp:
- Aug 27, 2008, 6:28:12 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/tools.c
r1121 r1122 118 118 } 119 119 if (!filename || !*filename) 120 filename = (*lasttoolb ox) ? lasttoolbox: "CMDS.TLS";120 filename = (*lasttoolbar) ? lasttoolbar : "CMDS.TLS"; 121 121 if (*filename) 122 122 fname = searchpath(filename); … … 125 125 if (fname && *fname) { 126 126 filename = fname; 127 strcpy(lasttoolb ox, filename);127 strcpy(lasttoolbar, filename); 128 128 fp = _fsopen(filename, "r", SH_DENYWR); 129 129 if (fp) { … … 187 187 188 188 if (!filename) 189 filename = lasttoolb ox;189 filename = lasttoolbar; 190 190 if (*filename) 191 191 fname = searchpath(filename); … … 193 193 filename = fname; 194 194 else { 195 if (*lasttoolb ox)196 filename = lasttoolb ox;195 if (*lasttoolbar) 196 filename = lasttoolbar; 197 197 else 198 198 filename = "FM3TOOLS.TLS"; … … 205 205 filename = "FM3TOOLS.TLS"; 206 206 if (toolhead && filename && *filename) { 207 strcpy(lasttoolb ox, filename);208 PrfWriteProfileString(fmprof, FM3Str, "LastTool Box", filename);207 strcpy(lasttoolbar, filename); 208 PrfWriteProfileString(fmprof, FM3Str, "LastToolbar", filename); 209 209 } 210 210 if (!toolhead) { … … 911 911 else { 912 912 WinSetWindowULong(hwnd, QWL_USER, FALSE); 913 WinSetWindowText(hwnd, GetPString(IDS_LOADTOOLB OXTITLETEXT));913 WinSetWindowText(hwnd, GetPString(IDS_LOADTOOLBARTITLETEXT)); 914 914 } 915 915 WinSendDlgItemMsg(hwnd, … … 960 960 WinSetDlgItemText(hwnd, 961 961 SVBTN_CURRENT, 962 (*lasttoolb ox) ? lasttoolbox: "FM3TOOLS.DAT");962 (*lasttoolbar) ? lasttoolbar : "FM3TOOLS.DAT"); 963 963 break; 964 964 … … 1018 1018 CHAR temptools[CCHMAXPATH]; 1019 1019 1020 strcpy(temptools, lasttoolb ox);1020 strcpy(temptools, lasttoolbar); 1021 1021 if (fToolsChanged) 1022 1022 save_tools(NULL); 1023 1023 WinQueryDlgItemText(hwnd, 1024 SVBTN_ENTRY, sizeof(lasttoolb ox), lasttoolbox);1025 if (*lasttoolb ox) {1026 if (!strchr(lasttoolb ox, '.'))1027 strcat(lasttoolb ox, ".TLS");1028 } 1029 if (saving && *lasttoolb ox)1024 SVBTN_ENTRY, sizeof(lasttoolbar), lasttoolbar); 1025 if (*lasttoolbar) { 1026 if (!strchr(lasttoolbar, '.')) 1027 strcat(lasttoolbar, ".TLS"); 1028 } 1029 if (saving && *lasttoolbar) 1030 1030 save_tools(NULL); 1031 1031 else { 1032 1032 if (!load_tools(NULL)) { 1033 strcpy(lasttoolb ox, temptools);1033 strcpy(lasttoolbar, temptools); 1034 1034 if (!load_tools(NULL)) { 1035 *lasttoolb ox= 0;1035 *lasttoolbar = 0; 1036 1036 load_tools(NULL); 1037 1037 } 1038 1038 } 1039 1039 } 1040 PrfWriteProfileString(fmprof, FM3Str, "LastTool Box", lasttoolbox);1040 PrfWriteProfileString(fmprof, FM3Str, "LastToolbar", lasttoolbar); 1041 1041 } 1042 1042 WinDismissDlg(hwnd, 1);
Note:
See TracChangeset
for help on using the changeset viewer.