Changeset 1395 for trunk/dll/datamin.c
- Timestamp:
- Feb 8, 2009, 2:48:16 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/datamin.c
r1391 r1395 25 25 Dos/Win programs from being inserted into the execute dialog with message why. 26 26 11 Jan 09 GKY Replace font names in the string file with global set at compile in init.c 27 07 Feb 09 GKY Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error 28 07 Feb 09 GKY Add *DateFormat functions to format dates based on locale 27 29 28 30 ***********************************************************************/ … … 260 262 MINI_X, 261 263 MINI_Y, hwnd, HWND_TOP, ids[c], NULL, NULL)) { 262 Win_Error2(hwnd, hwnd, pszSrcFile, __LINE__, IDS_WINCREATEWINDOW); 264 Win_Error(hwnd, hwnd, pszSrcFile, __LINE__, 265 PCSZ_WINCREATEWINDOW); 263 266 } 264 267 x += (MINI_X + 4); … … 318 321 WS_VISIBLE, x, y, MINI_X, MINI_Y, hwnd, 319 322 HWND_TOP, MINI_DRIVEA + c, NULL, NULL)) { 320 Win_Error 2(hwnd, hwnd, pszSrcFile, __LINE__,321 IDS_WINCREATEWINDOW);323 Win_Error(hwnd, hwnd, pszSrcFile, __LINE__, 324 PCSZ_WINCREATEWINDOW); 322 325 } 323 326 numdrives++; … … 747 750 case UM_TIMER: 748 751 { 749 CHAR s[134] ;752 CHAR s[134], szDate[11]; 750 753 DATETIME dt; 751 754 … … 754 757 HWND_TOP, 0, 0, 0, 0, SWP_ZORDER); 755 758 if (counter && (counter % 19) && (counter % 20)) { 756 if (!DosGetDateTime(&dt)) { 759 if (!DosGetDateTime(&dt)) { 760 DTDateFormat(szDate, dt); 757 761 sprintf(s, 758 " %02hu :%02hu:%02hu %s %04u/%02u/%02u",759 dt.hours, 760 dt.minutes, 762 " %02hu%s%02hu%s%02hu %s %s", 763 dt.hours, TimeSeparator, 764 dt.minutes, TimeSeparator, 761 765 dt.seconds, 762 766 GetPString(IDS_SUNDAY + dt.weekday), 763 dt.year, dt.month, dt.day);767 szDate); 764 768 WinSetDlgItemText(hwnd, MINI_TIME, s); 765 769 } … … 944 948 numdays, GetPString(IDS_DAYTEXT), &"s"[numdays == 1L]); 945 949 nummins = val % (60L * 24L); 946 sprintf(s + strlen(s), " %lu :%02lu", nummins / 60, nummins % 60);950 sprintf(s + strlen(s), " %lu%s%02lu", nummins / 60, TimeSeparator, nummins % 60); 947 951 WinSetDlgItemText(hwnd, MINI_TIME, s); 948 952 }
Note:
See TracChangeset
for help on using the changeset viewer.