Das Datum in eine EditBox ausgeben
-
Hi
Ich habe eine EDIT-Box erstellt und würde dort gerne das Datum und die Zeit hineinschreiben. Ich bekomme aber nur das Datum dort hinein.
SYSTEMTIME timeNow; TCHAR Date[128]; TCHAR Time[128]; GetLocalTime(&timeNow); GetDateFormat(LOCALE_USER_DEFAULT, DATE_SHORTDATE, &timeNow, NULL, Date, (sizeof(Date) / sizeof(Date[0]))); GetTimeFormat(LOCALE_USER_DEFAULT, 0, &timeNow, NULL, Time, (sizeof(Time) / sizeof(Time[0]))); switch (message) /* handle the messages */ { case WM_CREATE: hEdit = CreateWindowEx(WS_EX_CLIENTEDGE, "EDIT", Time, WS_CHILD | WS_VISIBLE | WS_VSCROLL | ES_MULTILINE | ES_AUTOVSCROLL, 100, 220, 330, 440, hwnd, NULL, ((LPCREATESTRUCT) lParam) -> hInstance, NULL);
Kann mir da einer weiterhelfen
Gruß
-
WM_TIMER + lstrcat + SetWindowText