https://bugs.winehq.org/show_bug.cgi?id=57521 --- Comment #8 from Zhiyi Zhang <zzhang(a)codeweavers.com> --- (In reply to Zhiyi Zhang from comment #7)
Changing WindowText in light.rc changes the text color for static controls. It's from the WM_CTLCOLORSTATIC handling by dlls/win32u/defwnd.c:2320 handle_control_color(). Specifically, the "NtGdiGetAndSetDCDword( hdc, NtGdiSetTextColor, get_sys_color( COLOR_WINDOWTEXT ), NULL );".
This also means that the text color of static controls is determined by the parent window's response to WM_CTLCOLORSTATIC. So if there is an application that handles WM_CTLCOLORSTATIC and sets the text color to black. You will get a black text in the static control regardless of the value of COLOR_WINDOWTEXT. This is also why some win32/GDI applications always have black text even though dark mode is enabled on Windows. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.