#include "wintime.h"#include <windows.h>#include <winuser.h>#include <commctrl.h>#include <time.h>#include "res/resource.h"#include <celengine/astro.h>Include dependency graph for wintime.cpp:

Go to the source code of this file.
Functions | |
| static void | acronymify (char *words, int length) |
| static BOOL APIENTRY | SetTimeProc (HWND hDlg, UINT message, UINT wParam, LONG lParam) |
| void | ShowSetTimeDialog (HINSTANCE appInstance, HWND appWindow, CelestiaCore *appCore) |
|
||||||||||||
|
Definition at line 66 of file wintime.cpp. Referenced by SetTimeDialog::getLocalTimeZoneInfo(). 00067 {
00068 int n = 0;
00069 char lastChar = ' ';
00070
00071 for (int i = 0; i < length; i++)
00072 {
00073 if (lastChar == ' ')
00074 words[n++] = words[i];
00075 lastChar = words[i];
00076 }
00077 words[n] = '\0';
00078 }
|
|
||||||||||||||||||||
|
Definition at line 269 of file wintime.cpp. References SetTimeDialog::command(), SetTimeDialog::init(), and SetTimeDialog::notify(). Referenced by ShowSetTimeDialog(). 00273 {
00274 SetTimeDialog* timeDialog = reinterpret_cast<SetTimeDialog*>(GetWindowLong(hDlg, DWL_USER));
00275
00276 switch (message)
00277 {
00278 case WM_INITDIALOG:
00279 {
00280 timeDialog = reinterpret_cast<SetTimeDialog*>(lParam);
00281 if (timeDialog == NULL)
00282 return EndDialog(hDlg, 0);
00283
00284 timeDialog->init(hDlg);
00285 }
00286 return TRUE;
00287
00288 case WM_COMMAND:
00289 return timeDialog->command(wParam, lParam);
00290
00291 case WM_NOTIFY:
00292 return timeDialog->notify((int) wParam, *reinterpret_cast<NMHDR*>(lParam));
00293 }
00294
00295 return FALSE;
00296 }
|
|
||||||||||||||||
|
Definition at line 300 of file wintime.cpp. References appInstance, IDD_SETTIME, and SetTimeProc(). Referenced by MainWindowProc(). 00303 {
00304 SetTimeDialog* timeDialog = new SetTimeDialog(appCore);
00305
00306 DialogBoxParam(appInstance, MAKEINTRESOURCE(IDD_SETTIME), appWindow, SetTimeProc, reinterpret_cast<LPARAM>(timeDialog));
00307
00308 delete timeDialog;
00309 }
|
1.4.1