From ac07e9afb9ef67ae227966425f85c26613b7ea94 Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Mon, 29 Apr 2019 22:10:17 +0200 Subject: remove app, use global variables instead also some unrelated combobox fixes --- widgetfactory.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'widgetfactory.cpp') diff --git a/widgetfactory.cpp b/widgetfactory.cpp index 8f7961c..67e38d7 100644 --- a/widgetfactory.cpp +++ b/widgetfactory.cpp @@ -106,13 +106,13 @@ WinMain cparams.vtbl.message = handleMessage; cparams.vtbl.command = handleCommand; - ALFAPP app = ALF_CreateApplication(hInstance); + ALF_Initialize(); - LPCTSTR clazz = ALF_RegisterWindowClass(app, &cparams); + LPCTSTR clazz = ALF_RegisterWindowClass(hInstance, &cparams); if (!clazz) MessageBox(0, TEXT("couldn't create window class!"), 0, MB_ICONHAND|MB_OK); - HWND win = ALF_InstantiateWindow(app, clazz, NULL, NULL); + HWND win = ALF_InstantiateWindow(hInstance, clazz, NULL, NULL); if (!win) MessageBox(0, TEXT("couldn't create main window!"), 0, MB_ICONHAND|MB_OK); @@ -204,8 +204,8 @@ WinMain ALF_ShowModal(win); ALF_DestroyWindow(win); - ALF_UnregisterWindowClass(app, clazz); - ALF_TeardownApplication(app); + ALF_UnregisterWindowClass(hInstance, clazz); + ALF_UnInitialize(); return 0; } -- cgit v1.2.3