Changeset 1395 for trunk/dll/info.c
- Timestamp:
- Feb 8, 2009, 2:48:16 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/info.c
r1391 r1395 29 29 to prevent duplicate directory names in tree following a copy before initial scan. 30 30 11 Jan 08 GKY Add Write verify off and recures scan to drive info display when appropriate. 31 07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook. 32 07 Feb 09 GKY Add *DateFormat functions to format dates based on locale 31 33 32 34 ***********************************************************************/ … … 657 659 CHAR s[97]; 658 660 CHAR szCmmaFmtFileSize[81], szCmmaFmtEASize[81]; 659 CHAR szCmmaFmtFileEASize[81], szCmmaFmtFileEASizeK[81] ;661 CHAR szCmmaFmtFileEASize[81], szCmmaFmtFileEASizeK[81], szDate[11]; 660 662 FILEFINDBUF4L fs; 661 663 HDIR hdir = HDIR_CREATE; … … 675 677 SHORT sSelect, numitems; 676 678 677 DosBeep(250, 100); // Wake up user 679 if (!fAlertBeepOff) 680 DosBeep(250, 100); // Wake up user 678 681 sSelect = (SHORT) WinSendDlgItemMsg(hwnd, 679 682 FLE_NAME, … … 696 699 } 697 700 else { 698 DosFindClose(hdir); 699 sprintf(s, 700 "%04u/%02u/%02u %02u:%02u:%02u", 701 1980 + fs.fdateLastWrite.year, 702 fs.fdateLastWrite.month, 703 fs.fdateLastWrite.day, 704 fs.ftimeLastWrite.hours, 705 fs.ftimeLastWrite.minutes, fs.ftimeLastWrite.twosecs * 2); 701 DosFindClose(hdir); 702 FDateFormat(szDate, fs.fdateLastWrite); 703 sprintf(s, "%s %02u%s%02u%s%02u", 704 szDate, 705 fs.ftimeLastWrite.hours, TimeSeparator, 706 fs.ftimeLastWrite.minutes, TimeSeparator, fs.ftimeLastWrite.twosecs * 2); 706 707 WinSetDlgItemText(hwnd, FLE_LASTWRITE, s); 707 708 if (fs.fdateCreation.year && 708 fs.fdateCreation.month && fs.fdateCreation.day) { 709 sprintf(s, 710 "%04u/%02u/%02u %02u:%02u:%02u", 711 1980 + fs.fdateCreation.year, 712 fs.fdateCreation.month, 713 fs.fdateCreation.day, 714 fs.ftimeCreation.hours, 715 fs.ftimeCreation.minutes, fs.ftimeCreation.twosecs * 2); 709 fs.fdateCreation.month && fs.fdateCreation.day) { 710 FDateFormat(szDate, fs.fdateCreation); 711 sprintf(s, "%s %02u%s%02u%s%02u", 712 szDate, 713 fs.ftimeCreation.hours, TimeSeparator, 714 fs.ftimeCreation.minutes, TimeSeparator, fs.ftimeCreation.twosecs * 2); 716 715 WinSetDlgItemText(hwnd, FLE_CREATE, s); 717 716 } 718 717 if (fs.fdateLastAccess.year && 719 fs.fdateLastAccess.month && fs.fdateLastAccess.day) { 720 sprintf(s, 721 "%04u/%02u/%02u %02u:%02u:%02u", 722 1980 + fs.fdateLastAccess.year, 723 fs.fdateLastAccess.month, 724 fs.fdateLastAccess.day, 725 fs.ftimeLastAccess.hours, 726 fs.ftimeLastAccess.minutes, fs.ftimeLastAccess.twosecs * 2); 718 fs.fdateLastAccess.month && fs.fdateLastAccess.day) { 719 FDateFormat(szDate, fs.fdateLastAccess); 720 sprintf(s, "%s %02u%s%02u%s%02u", 721 szDate, 722 fs.ftimeLastAccess.hours, TimeSeparator, 723 fs.ftimeLastAccess.minutes, TimeSeparator, fs.ftimeLastAccess.twosecs * 2); 727 724 WinSetDlgItemText(hwnd, FLE_LASTACCESS, s); 728 725 }
Note:
See TracChangeset
for help on using the changeset viewer.