int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, #ifdef _WIN32_WCE LPWSTR lpCmdLine, #else LPSTR lpCmdLine2, #endif int nCmdShow) #endif { #ifdef WIN32 CommonInterface::hInst = hInstance; PaintWindow::register_class(hInstance); #endif LoadFiles(); CreateDefaultTask(task_manager, way_points); SingleWindow main_window; main_window.set(_T("STATIC"), _T("RunTaskEditorDialog"), 0, 0, 640, 480); ((Window &)main_window).install_wndproc(); main_window.show(); Layout::Initialize(640, 480); Fonts::Initialize(); dlgTaskOverviewShowModal(main_window); return 0; }
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine2, int nCmdShow) #endif { InitialiseDataPath(); ScreenGlobalInit screen_init; LoadFiles(); CreateDefaultTask(task_manager, way_points); SingleWindow main_window; main_window.set(_T("STATIC"), _T("RunTaskEditorDialog"), 0, 0, 640, 480); main_window.Show(); Fonts::Initialize(); dlgTaskOverviewShowModal(main_window); Fonts::Deinitialize(); DeinitialiseDataPath(); return 0; }