Changeset 1395 for trunk/dll/treecnr.c
- Timestamp:
- Feb 8, 2009, 2:48:16 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/treecnr.c
r1394 r1395 59 59 01 Jan 09 GKY Add Seek and Scan to drives & directory context menus pass drive/dir as search root 60 60 11 Jan 09 GKY Replace font names in the string file with global set at compile in init.c 61 07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook. 62 07 Feb 09 GKY Add *DateFormat functions to format dates based on locale 63 07 Feb 09 GKY Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error 61 64 62 65 ***********************************************************************/ … … 1220 1223 WinSetWindowText(WinWindowFromID(dcd->hwndFrame, 1221 1224 MAIN_STATUS), pci->pszFileName); 1222 if (fMoreButtons && hwndName) { 1225 if (fMoreButtons && hwndName) { 1226 CHAR szDate[11]; 1227 1228 DateFormat(szDate, pci->date); 1223 1229 WinSetWindowText(hwndName, pci->pszFileName); 1224 sprintf(str, 1225 "%04u/%02u/%02u %02u:%02u:%02u", 1226 pci->date.year, 1227 pci->date.month, 1228 pci->date.day, 1229 pci->time.hours, pci->time.minutes, pci->time.seconds); 1230 sprintf(str, "%s %02u%s%02u%s%02u", szDate, 1231 pci->time.hours, TimeSeparator, 1232 pci->time.minutes, TimeSeparator, pci->time.seconds); 1230 1233 WinSetWindowText(hwndDate, str); 1231 1234 WinSetWindowText(hwndAttr, pci->pszDispAttr); … … 1837 1840 UnFlesh(hwnd, pci); 1838 1841 PostMsg(hwnd, UM_RESCAN, MPVOID, MPVOID); 1839 DosBeep(250, 100); 1842 if (!fAlertBeepOff) 1843 DosBeep(250, 100); 1840 1844 } 1841 1845 } … … 1905 1909 !(pci->flags & RECFLAGS_ENV) && IsFullName(pci->pszFileName)) { 1906 1910 if (driveflags[toupper(*pci->pszFileName) - 'A'] & DRIVE_INVALID) { 1907 DosBeep(50, 100); 1911 if (!fAlertBeepOff) 1912 DosBeep(50, 100); 1908 1913 if (hwndStatus) 1909 1914 WinSetWindowText(hwndStatus, GetPString(IDS_RESCANSUGTEXT)); … … 3208 3213 SV_CYMINMAXBUTTON), hwndFrame, 3209 3214 HWND_TOP, IDM_OPENWINDOW, NULL, NULL)) { 3210 Win_Error 2(hwndFrame, hwndParent, pszSrcFile, __LINE__,3211 IDS_WINCREATEWINDOW);3215 Win_Error(hwndFrame, hwndParent, pszSrcFile, __LINE__, 3216 PCSZ_WINCREATEWINDOW); 3212 3217 } 3213 3218 } … … 3225 3230 * 2), 22, hwndFrame, HWND_TOP, 3226 3231 MAIN_STATUS, NULL, NULL)) { 3227 Win_Error 2(hwndFrame, hwndParent, pszSrcFile, __LINE__,3228 IDS_WINCREATEWINDOW);3232 Win_Error(hwndFrame, hwndParent, pszSrcFile, __LINE__, 3233 PCSZ_WINCREATEWINDOW); 3229 3234 } 3230 3235 } … … 3258 3263 HWND_TOP, (ULONG) TREE_CNR, NULL, NULL); 3259 3264 if (!dcd->hwndCnr) { 3260 Win_Error 2(hwndClient, hwndClient, pszSrcFile, __LINE__,3261 IDS_WINCREATEWINDOW);3265 Win_Error(hwndClient, hwndClient, pszSrcFile, __LINE__, 3266 PCSZ_WINCREATEWINDOW); 3262 3267 PostMsg(hwndClient, WM_CLOSE, MPVOID, MPVOID); 3263 3268 free(dcd);
Note:
See TracChangeset
for help on using the changeset viewer.