mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
changed explorer slightly
svn path=/trunk/; revision=7633
This commit is contained in:
parent
490c55529b
commit
782a2efe59
1 changed files with 1 additions and 6 deletions
|
@ -381,15 +381,10 @@ void ClockWindow::TimerTick()
|
|||
|
||||
bool ClockWindow::FormatTime()
|
||||
{
|
||||
SYSTEMTIME systime;
|
||||
TCHAR buffer[16];
|
||||
TCHAR TimeFormat[] = TEXT("hh':'mm tt");
|
||||
GetLocalTime(&systime);
|
||||
|
||||
GetTimeFormat(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);
|
||||
GetTimeFormatW(LOCALE_USER_DEFAULT,0,NULL,TimeFormat,buffer,sizeof(buffer));
|
||||
|
||||
if (_tcscmp(buffer, _time)) {
|
||||
_tcscpy(_time, buffer);
|
||||
|
|
Loading…
Reference in a new issue