summaryrefslogtreecommitdiff
path: root/widgetfactory.cpp
diff options
context:
space:
mode:
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;
}