summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/src/CDlgBase.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mir_core/src/CDlgBase.cpp b/src/mir_core/src/CDlgBase.cpp
index a3afbdc8bd..9157269ea1 100644
--- a/src/mir_core/src/CDlgBase.cpp
+++ b/src/mir_core/src/CDlgBase.cpp
@@ -185,10 +185,15 @@ BOOL CALLBACK CDlgBase::GlobalFieldEnum(HWND hwnd, LPARAM lParam)
else if (!wcsicmp(wszClass, L"ComboBox"))
new CCtrlCombo(pDlg, id);
else if (!wcsicmp(wszClass, L"Button")) {
- if (GetWindowLongW(hwnd, GWL_STYLE) & (BS_CHECKBOX | BS_RADIOBUTTON | BS_AUTORADIOBUTTON))
+ switch (GetWindowLongW(hwnd, GWL_STYLE) & (BS_CHECKBOX | BS_RADIOBUTTON | BS_AUTORADIOBUTTON)) {
+ case BS_CHECKBOX:
+ case BS_RADIOBUTTON:
+ case BS_AUTORADIOBUTTON:
new CCtrlCheck(pDlg, id);
- else
+ break;
+ default:
new CCtrlButton(pDlg, id);
+ }
}
else if (!wcsicmp(wszClass, L"RichEdit50W"))
new CCtrlRichEdit(pDlg, id);