changed explorer slightly

svn path=/trunk/; revision=7633
This commit is contained in:
Richard Campbell 2004-01-14 23:28:33 +00:00
parent 490c55529b
commit 782a2efe59

View file

@ -381,15 +381,10 @@ void ClockWindow::TimerTick()
bool ClockWindow::FormatTime() bool ClockWindow::FormatTime()
{ {
SYSTEMTIME systime;
TCHAR buffer[16]; TCHAR buffer[16];
TCHAR TimeFormat[] = TEXT("hh':'mm tt"); TCHAR TimeFormat[] = TEXT("hh':'mm tt");
GetLocalTime(&systime);
GetTimeFormat(LOCALE_USER_DEFAULT,0,NULL,TimeFormat,buffer,sizeof(buffer)); GetTimeFormatW(LOCALE_USER_DEFAULT,0,NULL,TimeFormat,buffer,sizeof(buffer));
//_stprintf(buffer, TEXT("%02d:%02d:%02d"), systime.wHour, systime.wMinute, systime.wSecond);
//_stprintf(buffer, TEXT("%02d:%02d"), systime.wHour, systime.wMinute);
if (_tcscmp(buffer, _time)) { if (_tcscmp(buffer, _time)) {
_tcscpy(_time, buffer); _tcscpy(_time, buffer);