summaryrefslogtreecommitdiff
path: root/widgetfactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'widgetfactory.cpp')
-rw-r--r--widgetfactory.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/widgetfactory.cpp b/widgetfactory.cpp
index 42eb987..7956d5c 100644
--- a/widgetfactory.cpp
+++ b/widgetfactory.cpp
@@ -68,6 +68,9 @@ handleCommand(void *closure, HWND window, WORD notificationcode, WORD sourceid,
HWND combo = ALF_WidgetHwndById(window, ID_COMBO2);
ALF_ComboBoxSetCurrentIndex(combo, -1);
}
+ if (control != NULL && sourceid == ID_B2) {
+ MessageBox(window, TEXT("Hello World!"), TEXT("Hello"), MB_ICONASTERISK|MB_OK);
+ }
return 0;
}
@@ -151,7 +154,7 @@ WinMain
ALF_ComboBoxSetText(hwndCombo2, TEXT("Goodbye World!"));
- //EnableWindow(ALF_WidgetHwndById(win, ID_LBL3), FALSE);
+ EnableWindow(ALF_WidgetHwndById(win, ID_LBL3), FALSE);
ALF_ResizeWindow(win, 1, 1);
@@ -163,3 +166,15 @@ WinMain
return 0;
}
+
+void
+_entry(void)
+{
+ ExitProcess(
+#ifdef UNICODE
+wWinMain
+#else
+WinMain
+#endif
+ (GetModuleHandle(NULL), NULL, GetCommandLine(), SW_SHOW));
+}