21 Nov
2024
21 Nov
'24
8:39 a.m.
Zhiyi Zhang (@zhiyi) commented about dlls/comctl32/button.c:
if (style & BS_NOTIFY) BUTTON_NOTIFY_PARENT(hWnd, BN_SETFOCUS); + + if (((btn_type == BS_RADIOBUTTON) || (btn_type == BS_AUTORADIOBUTTON)) && + !(infoPtr->state & (BST_CHECKED | BUTTON_BTNPRESSED))) + { + BUTTON_NOTIFY_PARENT(hWnd, BN_CLICKED);
"A disabled button does not send a BN_CLICKED notification code to its parent window." from [MSDN](https://learn.microsoft.com/en-us/windows/win32/controls/bn-clicked). Could you add tests for it? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5759#note_88246