summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-04-27 16:47:09 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-04-27 16:47:09 +0300
commita65206da4883b79ff3b0a4418562005e267d369e (patch)
treee7bb4ce88cd4bf72ed428af0a5a1d3f263afd73c
parent108bab0f15fb00efbff48267435aef372e7e4df1 (diff)
UI classes: support for 3-state buttons
-rw-r--r--src/mir_core/src/Windows/CDlgBase.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mir_core/src/Windows/CDlgBase.cpp b/src/mir_core/src/Windows/CDlgBase.cpp
index 45ae944e21..fa3c146ce6 100644
--- a/src/mir_core/src/Windows/CDlgBase.cpp
+++ b/src/mir_core/src/Windows/CDlgBase.cpp
@@ -218,9 +218,11 @@ 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_AUTOCHECKBOX | BS_AUTORADIOBUTTON)) {
+ switch (GetWindowLongW(hwnd, GWL_STYLE) & BS_TYPEMASK) {
case BS_CHECKBOX:
case BS_AUTOCHECKBOX:
+ case BS_3STATE:
+ case BS_AUTO3STATE:
case BS_RADIOBUTTON:
case BS_AUTORADIOBUTTON:
new CCtrlCheck(pDlg, id);