diff options
| author | Jonas Kümmerlin <jonas@kuemmerlin.eu> | 2019-01-08 23:13:32 +0100 |
|---|---|---|
| committer | Jonas Kümmerlin <jonas@kuemmerlin.eu> | 2019-01-08 23:13:32 +0100 |
| commit | eb706aae8bf5659a8aae37db31f88c3b605b8b1f (patch) | |
| tree | df059ce548f6710aa30c32cef8a8ee9f3b4cc783 /widgetfactory.cpp | |
| parent | 6fb581e28e1ede9be7459533d9ca08679324652b (diff) | |
reingineer compat layer
not totally sure whether that's actually better
Diffstat (limited to 'widgetfactory.cpp')
| -rw-r--r-- | widgetfactory.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/widgetfactory.cpp b/widgetfactory.cpp index efee767..aa490d6 100644 --- a/widgetfactory.cpp +++ b/widgetfactory.cpp @@ -107,8 +107,12 @@ WinMain ALFAPP app = ALF_CreateApplication(hInstance); LPCTSTR clazz = ALF_RegisterWindowClass(app, &cparams); + if (!clazz) + MessageBox(0, TEXT("couldn't create window class!"), 0, MB_ICONHAND|MB_OK); HWND win = ALF_InstantiateWindow(app, clazz, NULL, NULL); + if (!win) + MessageBox(0, TEXT("couldn't create main window!"), 0, MB_ICONHAND|MB_OK); ALF_AddLabel(win, ID_LBL2, 1, 0, TEXT("Hello, 2!\nblub")); |
