Changeset 1395 for trunk/dll/dircnrs.c
- Timestamp:
- Feb 8, 2009, 2:48:16 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/dircnrs.c
r1394 r1395 54 54 26 Dec 08 GKY Fixed DROPHELP to check for copy as default is action is DO_DEFAULT 55 55 01 Jan 09 GKY Add Seek and Scan to drives & directory context menus pass drive/dir as search root 56 07 Feb 09 GKY Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error 57 07 Feb 09 GKY Move repeated strings to PCSZs. 58 07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook. 59 07 Feb 09 GKY Add *DateFormat functions to format dates based on locale 56 60 57 61 ***********************************************************************/ … … 987 991 ULONG size; 988 992 989 strcpy(filename, "*.LST");993 strcpy(filename, PCSZ_STARDOTLST); 990 994 size = CCHMAXPATH; 991 995 PrfQueryProfileData(fmprof, appname, "SaveToListName", … … 1470 1474 1471 1475 CNRINFO cnri; 1472 CHAR s[CCHMAXPATH * 2], tf[81], tb[81] ;1476 CHAR s[CCHMAXPATH * 2], tf[81], tb[81], szDate[11]; 1473 1477 PCNRITEM pci; 1474 1478 … … 1500 1504 if (fSplitStatus && hwndStatus2) { 1501 1505 CommaFmtULL(tb, sizeof(tb), pci->cbFile + pci->easize, ' '); 1502 if (!fMoreButtons) 1503 sprintf(s, 1504 " %s %04u/%02u/%02u %02u:%02u:%02u [%s] %s",1506 if (!fMoreButtons) { 1507 DateFormat(szDate, pci->date); 1508 sprintf(s, " %s %s %02u%s%02u%s%02u [%s] %s", 1505 1509 tb, 1506 pci->date.year,1507 pci->date.month,1508 pci->date.day,1509 pci->time.hours,1510 pci->time.minutes,1510 szDate, 1511 pci->time.hours, 1512 TimeSeparator, 1513 pci->time.minutes, 1514 TimeSeparator, 1511 1515 pci->time.seconds, 1512 pci->pszDispAttr, pci->pszFileName); 1516 pci->pszDispAttr, pci->pszFileName); 1517 } 1513 1518 else { 1514 1519 *tf = 0; … … 1525 1530 WinSetWindowText(hwndStatus2, NullStr); 1526 1531 if (fMoreButtons) { 1527 1528 sprintf(s, 1529 "%04u/%02u/%02u %02u:%02u:%02u",1530 pci->date.year,1531 pci->date.month,1532 pci->date.day,1533 pci->time.hours, pci->time.minutes,pci->time.seconds);1532 WinSetWindowText(hwndName, pci->pszFileName); 1533 DateFormat(szDate, pci->date); 1534 sprintf(s, "%s %02u%s%02u%s%02u", 1535 szDate, 1536 pci->time.hours, TimeSeparator, 1537 pci->time.minutes, TimeSeparator, 1538 pci->time.seconds); 1534 1539 WinSetWindowText(hwndDate, s); 1535 1540 WinSetWindowText(hwndAttr, pci->pszDispAttr); … … 2827 2832 Dos_Error(MB_ENTER, rc, HWND_DESKTOP, pszSrcFile, __LINE__, 2828 2833 GetPString(IDS_CANTFINDDIRTEXT), 2829 pci->pszFileName); 2830 DosBeep(250,100); 2834 pci->pszFileName); 2835 if (!fErrorBeepOff) 2836 DosBeep(250,100); 2831 2837 driveserial[toupper(*pci->pszFileName) - 'A'] = -1; 2832 2838 UnFlesh(hwnd, pci); … … 3322 3328 if (fSplitStatus && hwndStatus2) { 3323 3329 CommaFmtULL(tb, sizeof(tb), pci->cbFile + pci->easize, ' '); 3324 if (!fMoreButtons) { 3325 sprintf(s, " %s %04u/%02u/%02u %02u:%02u:%02u [%s] %s", 3326 tb, pci->date.year, 3327 pci->date.month, pci->date.day, pci->time.hours, 3328 pci->time.minutes, pci->time.seconds, 3330 if (!fMoreButtons) { 3331 CHAR date[11]; 3332 3333 DateFormat(date, pci->date); 3334 sprintf(s, " %s %s %02u%s%02u%s%02u [%s] %s", 3335 tb, date, pci->time.hours, TimeSeparator, 3336 pci->time.minutes, TimeSeparator, pci->time.seconds, 3329 3337 pci->pszDispAttr, pci->pszFileName); 3330 3338 } … … 3341 3349 WinSetWindowText(hwndStatus2, s); 3342 3350 } 3343 if (fMoreButtons) { 3344 WinSetWindowText(hwndName, pci->pszFileName); 3345 sprintf(s, "%04u/%02u/%02u %02u:%02u:%02u", 3346 pci->date.year, pci->date.month, 3347 pci->date.day, pci->time.hours, pci->time.minutes, 3348 pci->time.seconds); 3351 if (fMoreButtons) { 3352 CHAR szDate[11]; 3353 3354 WinSetWindowText(hwndName, pci->pszFileName); 3355 DateFormat(szDate, pci->date); 3356 sprintf(s, "%s %02u%s%02u%s%02u", 3357 szDate, pci->time.hours, TimeSeparator, pci->time.minutes, 3358 TimeSeparator, pci->time.seconds); 3349 3359 WinSetWindowText(hwndDate, s); 3350 3360 WinSetWindowText(hwndAttr, pci->pszDispAttr); … … 3677 3687 HWND_TOP, (ULONG) DIR_CNR, NULL, NULL); 3678 3688 if (!dcd->hwndCnr) { 3679 Win_Error 2(hwndClient, hwndClient, pszSrcFile, __LINE__,3680 IDS_WINCREATEWINDOW);3689 Win_Error(hwndClient, hwndClient, pszSrcFile, __LINE__, 3690 PCSZ_WINCREATEWINDOW); 3681 3691 PostMsg(hwndClient, WM_CLOSE, MPVOID, MPVOID); 3682 3692 free(dcd);
Note:
See TracChangeset
for help on using the changeset viewer.