diff options
author | George Hazan <ghazan@miranda.im> | 2021-01-16 14:50:58 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-01-16 14:50:58 +0300 |
commit | 0c4285ffa8331b1ed55e51b7d511db52f3cfea19 (patch) | |
tree | 2db4da9f0d8943f6b539c51d484a128b2df67c5a /src | |
parent | ed0102b6fa4de6f6a5f84d3f72bec3f9129130db (diff) |
fix for BS_AUTOCHECKBOX flag processing
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_core/src/CDlgBase.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mir_core/src/CDlgBase.cpp b/src/mir_core/src/CDlgBase.cpp index 9157269ea1..4cd670e2a3 100644 --- a/src/mir_core/src/CDlgBase.cpp +++ b/src/mir_core/src/CDlgBase.cpp @@ -185,12 +185,14 @@ BOOL CALLBACK CDlgBase::GlobalFieldEnum(HWND hwnd, LPARAM lParam) else if (!wcsicmp(wszClass, L"ComboBox")) new CCtrlCombo(pDlg, id); else if (!wcsicmp(wszClass, L"Button")) { - switch (GetWindowLongW(hwnd, GWL_STYLE) & (BS_CHECKBOX | BS_RADIOBUTTON | BS_AUTORADIOBUTTON)) { + switch (GetWindowLongW(hwnd, GWL_STYLE) & (BS_CHECKBOX | BS_RADIOBUTTON | BS_AUTOCHECKBOX | BS_AUTORADIOBUTTON)) { case BS_CHECKBOX: + case BS_AUTOCHECKBOX: case BS_RADIOBUTTON: case BS_AUTORADIOBUTTON: new CCtrlCheck(pDlg, id); break; + default: new CCtrlButton(pDlg, id); } |