[Bug 15988] ListView control (SysListView32) created with WS_DISABLED style shows incorrect background color (Microsoft ActiveSync 4.5 installer)

WineHQ Bugzilla wine-bugs at winehq.org
Fri Mar 13 17:10:02 CDT 2020


https://bugs.winehq.org/show_bug.cgi?id=15988

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|-unknown                    |comctl32
            Summary|ActiveSync 4.5 the scroll   |ListView control
                   |of panel in installation    |(SysListView32) created
                   |don't working               |with WS_DISABLED style
                   |                            |shows incorrect background
                   |                            |color (Microsoft ActiveSync
                   |                            |4.5 installer)
                URL|http://www.microsoft.com/en |https://web.archive.org/web
                   |-us/download/details.aspx?i |/20070217065205/http://down
                   |d=15                        |load.microsoft.com/download
                   |                            |/5/4/6/5467c040-a935-4987-a
                   |                            |a30-5dcbc36a57db/setup.msi
                 CC|                            |focht at gmx.net
           Hardware|Other                       |x86-64
           Severity|normal                      |minor
             Status|UNCONFIRMED                 |NEW
                 OS|other                       |Linux
     Ever confirmed|0                           |1
           Keywords|Abandoned?                  |Installer

--- Comment #10 from Anastasius Focht <focht at gmx.net> ---
Hello folks,

the behaviour is by design.

Relevant part of trace log:

--- snip ---
$ WINEDEBUG=+seh,+relay,+win,+msg,+listview wine msiexec -i setup.msi >>log.txt
2>&1
...
002b:Call user32.CreateWindowExW(00000000,1008e9b2 L"SysListView32",01812e08
L"{70}{50}{50}{50}{70}",58b30145,00000019,000000bc,000001c5,00000065,00050082,00000000,00000000,00000000)
ret=1002dcfe
002b:trace:win:WIN_CreateWindowEx L"{70}{50}{50}{50}{70}" L"SysListView32"
ex=00000000 style=58b30145 25,188 453x101 parent=0x50082 menu=(nil) inst=(nil)
params=(nil)
002b:trace:win:dump_window_styles style: WS_CHILD WS_VISIBLE WS_DISABLED
WS_BORDER WS_VSCROLL WS_HSCROLL WS_GROUP WS_TABSTOP 00000145
002b:trace:win:dump_window_styles exstyle:
002b:trace:win:WIN_SetWindowLong 0x60088 -12 0 W
002b:Call 
002b:trace:win:WIN_CreateWindowEx hwnd 0x60088 cs 25,188 453x101
(25,188)-(478,289) 
...
002b:Call user32.CreateWindowExW(00000000,00fe4a2c
L"SysHeader32",00000000,400000c2,00000000,00000000,00000000,00000000,00060088,00000000,00000000,00000000)
ret=00f879b8
002b:trace:win:WIN_CreateWindowEx (null) L"SysHeader32" ex=00000000
style=400000c2 0,0 0x0 parent=0x60088 menu=(nil) inst=(nil) params=(nil)
002b:trace:win:dump_window_styles style: WS_CHILD 000000c2
002b:trace:win:dump_window_styles exstyle:
002b:trace:win:WIN_SetWindowLong 0x200a6 -12 0 W 
...
002b:trace:win:WIN_CreateWindowEx created window 0x60088
002b:Ret  user32.CreateWindowExW() retval=00060088 ret=1002dcfe
...
002b:trace:listview:LISTVIEW_InsertColumnT (nColumn=0, lpColumn={iSubItem=0,
cx=70, pszText=L"Volume", cchTextMax=0}, isW=1) 
...
--- snip ---

The ListView control is supposed to be "readonly" with no interaction, hence
WS_DISABLED style. The (minor) thing that Wine got wrong here is the background
color of the disabled ListView control. It should be gray to indicate the
control is disabled.

'winetricks -q comctl32' works around.

I've refined the ticket in anticipation of dupes.

$ sha1sum setup.msi 
4faa453beb2c9636e3a646eb43c153e3c035839e  setup.msi

$ du -sh setup.msi 
7.6M    setup.msi

$ wine --version
wine-5.4

Regards

-- 
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.


More information about the wine-bugs mailing list