[Bug 59397] New: WinSpy controls have black background
http://bugs.winehq.org/show_bug.cgi?id=59397 Bug ID: 59397 Summary: WinSpy controls have black background Product: Wine Version: 11.1 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@list.winehq.org Reporter: kyle.kcsoftwares@gmail.com Distribution: --- Created attachment 80357 --> http://bugs.winehq.org/attachment.cgi?id=80357 Winspy with black background WinSpy controls have black background Overlapping controls already reported here : https://bugs.winehq.org/show_bug.cgi?id=51722 -- 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.
http://bugs.winehq.org/show_bug.cgi?id=59397 KRosUser <kyle.kcsoftwares@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |Ubuntu -- 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.
http://bugs.winehq.org/show_bug.cgi?id=59397 Bernhard Übelacker <bernhardu@mailbox.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bernhardu@mailbox.org URL| |https://sourceforge.net/pro | |jects/winspyex/files/1.0.3/ | |WinSpy-1.0.3.7z/download Keywords| |download --- Comment #1 from Bernhard Übelacker <bernhardu@mailbox.org> --- $ md5sum WinSpy-1.0.3.7z 85a38a77cb7eba428aa423cc4bed89c8 WinSpy-1.0.3.7z In my tests both, WinSpy64.exe and WinSpy32.exe, are affected. Tested these versions: 6.15~bullseye-1 working (wineprefix created by 6.15) 6.15~bullseye-1 broken (wineprefix created by 9.0) 7.0.0~bullseye-2 broken (wineprefix created by 9.0) 8.0.0~bullseye-1 broken (wineprefix created by 9.0) 8.11~trixie-1 working (wineprefix created by 8.11, winecfg, Desktop Integration, Appearance, Theme, (No Theme)) 8.11~trixie-1 broken (wineprefix created by 8.11) 8.11~trixie-1 broken (wineprefix created by 11.2) 9.0.0~bullseye-1 broken (wineprefix created by 9.0) 9.0.0~trixie-1 broken (wineprefix created by 11.2) 10.0.0~trixie-1 broken (wineprefix created by 11.2) 11.0.0~trixie-1 broken (wineprefix created by 11.2) 11.2~trixie-1 broken (wineprefix created by 11.2) 11.2~trixie-1 working (wineprefix created by 11.2, winecfg, Desktop Integration, Appearance, Theme, (No Theme)) So it looks like a themeing issue. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=59397 --- Comment #2 from Bernhard Übelacker <bernhardu@mailbox.org> --- Created attachment 80360 --> http://bugs.winehq.org/attachment.cgi?id=80360 debugging details Attached file contains the backtraces of the calls to FillRect, which make the background of the texts black. Commenting out those two FillRects make the text appear. (Just for debugging, on redrawing those fields the background gets not erased.) Therefore maybe no theming but a comctl32_v6 issue? -- 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.
http://bugs.winehq.org/show_bug.cgi?id=59397 Bernhard Übelacker <bernhardu@mailbox.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source --- Comment #3 from Bernhard Übelacker <bernhardu@mailbox.org> --- Further investigation shows this is a program created with AuthHotkey, and it delivers the AHK script right away. A reduced version to show the issue is following: WinSpy-reduced.ahk ===== Gui Spy: New, LabelSpy hWndhSpyWnd Gui Add, Text, x10 y10 w62 h10 +0x200, Outside: Gui Add, Tab3, hWndhTab vTab x10 y50 w382 h373 AltSubmit -Wrap, General Gui Tab, 1 Gui Add, Text, x28 y88 w62 h23 +0x200, Inside: Gui Tab Gui Show Return SpyClose: ExitApp ===== The "Outside:" text gets drawn properly, but the "Inside:" text get the black background. I tested with a release of 2018 like the date that WinSpy.ahk shows. https://github.com/AutoHotkey/AutoHotkey/releases/tag/v1.1.30.00 Following is in my opinion the relevant part, where it "Creates a pattern brush based on a bitmap of this tab dialog's background." It seems this path using WM_PRINTCLIENT not working with wine. https://github.com/AutoHotkey/AutoHotkey/blob/774f1ab7d9de80450b92f2b240f64e... -- 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.
http://bugs.winehq.org/show_bug.cgi?id=59397 --- Comment #4 from Bernhard Übelacker <bernhardu@mailbox.org> --- Created attachment 80379 --> http://bugs.winehq.org/attachment.cgi?id=80379 HACK: Draw something in a WM_PRINTCLIENT message for a "#32770" hwnd. This hack responds to a WM_PRINTCLIENT of the dialog "#32770" hwnd by drawing solid yellow. The problem seems to be autohotkey creates a window with CreateDialogIndirect. In themed environment it then creates a brush from a bitmap filled by a WM_PRINTCLIENT message. Unfortunately this bitmap is never changed and therefore still holds the default "black" from NtGdiCreateBitmap. So someone has to do something with the WM_PRINTCLIENT message. Candidates are UXTHEME_DefDlgProc, USER_DefDlgProcW, DefWindowProcW or default_window_proc, but I am not sure who. -- 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.
participants (1)
-
WineHQ Bugzilla