Ralf_Reddings200244 wrote:Can anyone else with a Windows 10/11 system, by any chance check that is also the case for them?
Many functions of the library do not work in Windows 11 beginning with Build 22623. Here's a post at the library thread where I document it:
viewtopic.php?f=6&t=1229&start=80#p494711
In this thread, some workarounds are discussed for some of the functions:
viewtopic.php?f=76&t=111185
Here's a thread with more on it:
viewtopic.php?f=23&t=111398
That thread contains an explanation by
@lexikos on why the problem is happening:
viewtopic.php?f=23&t=111398#p499459
I submitted this
Feedback Hub report to Microsoft six months ago:
TB_ message calls for notification area (system tray) no longer working in Windows 11
TB_BUTTONCOUNT
TB_DELETEBUTTON
TB_GETBUTTON
TB_MOVEBUTTON
They were working fine in prior W11 releases, but do not work in Version 22H2, Build 22623.1020 (I don't know if that's the first release where they stopped working, but it's the first time that a user reported it to me). Btw, they are still working fine in W10/22H2.
Attached is VBA code that a colleague of mine wrote to show one example of the problem: TB_BUTTONCOUNT. When run on a W10/22H2 system (via Excel 365), it works fine, showing "Toolbar Buttons: 26" and "Overflow Buttons: 13". When run on a W11/22H2/22623.1020 system (also via Excel 365) with 8 icons in Shell_TrayWnd and 4 icons in NotifyIconOverflowWindow, it displays zeroes for both, i.e., "Toolbar Buttons: 0" and "Overflow Buttons: 0".
This is a critical bug that is catastrophic for several of my programs. I'd truly appreciate a fix as fast as possible.
Microsoft responded with this:
Thank you for your feedback, but what you're describing is not currently supported on Windows 11. Please file a new suggestion in the Feedback Hub if this is something you'd like us to support in the future.
They're basically saying that it's a feature, not a bug. I submitted four responses to that, including this one:
I should point out that this change in Windows 11, Version 22H2, Build 22623.1020 will break thousands of programs that rely on TB_ messages to programmatically handle the taskbar. I just counted here...it breaks at least 16 of my programs. Please reinstate the TB_ messages capability as it existed in previous W11 releases and still exists in all W10 releases.
I pointed out in another reply that the TB_BUTTONCOUNT documentation says that the minimum supported client is Windows Vista (desktop apps only), so that would certainly include W11:
https://learn.microsoft.com/en-us/windows/win32/controls/tb-buttoncount
Microsoft has not responded to any of my follow-up posts in the Feedback Hub.
I put code in all my programs to detect if the library is working (rather than checking the version of Windows) by calling
TrayIcon_GetInfo() and seeing if
TrayInfo.MaxIndex() (the number of icons in the tray) is non-null/non-zero. That way, I won't have to distribute new versions of my programs if and when the library starts working again.
I keep hoping that one of the library's prior authors (Sean, Cyruz, FanaticGuru) or a new player will get the library to work with the latest release of W11 (if that's even possible), as it appears that Microsoft has no intention of addressing the issue. Regards, Joe