summaryrefslogtreecommitdiff
path: root/widgetfactory.cpp
diff options
context:
space:
mode:
authorJonas Kümmerlin <jonas@kuemmerlin.eu>2019-04-29 22:10:17 +0200
committerJonas Kümmerlin <jonas@kuemmerlin.eu>2019-04-29 22:10:17 +0200
commitac07e9afb9ef67ae227966425f85c26613b7ea94 (patch)
tree34e6307dc2d40366214de873a9f6689849226c2c /widgetfactory.cpp
parentd64290aaffd4721518747713929d79a78ba963f4 (diff)
remove app, use global variables instead
also some unrelated combobox fixes
Diffstat (limited to 'widgetfactory.cpp')
-rw-r--r--widgetfactory.cpp10
1 files changed, 5 insertions, 5 deletions
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;
}