<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <br>
    <br>
    <div class="moz-cite-prefix">On 3/4/20 12:41 PM, Ziqing Hui wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:0ccc0942-20f0-ebce-002b-0bd475670eaf@codeweavers.com">
      <pre class="moz-quote-pre" wrap="">According to my tests, on v6 comctl32, a toolbar button which contains a 32bpp bitmap with alpha channel will become grayscale if disabled. This can be indicated by the first tests patch.

In conclusion, for v6 comctl32, here is the disabled toolbar button appearance in different situation:
* 32bpp with alpha channel: Grayscale (This is not supported before v6)
* 32bpp without alpha channel ("without alpha channel" means each pixel's alpha value is set to 0): Solid color
* not 32bpp (maybe 24bpp, 16bpp etc.): Solid color

Current wine doesn't implement the grayscale situation, which leads to wine bug 24784. This patch set fix it.

The test code is run under v6, because grayscale is not supported before v6.

Signed-off-by: Ziqing Hui <a class="moz-txt-link-rfc2396E" href="mailto:zhui@codeweavers.com"><zhui@codeweavers.com></a>
---
 dlls/comctl32/tests/toolbar.c | 201 ++++++++++++++++++++++++++++++++++
 1 file changed, 201 insertions(+)



</pre>
    </blockquote>
    This test is overkill I think, we don't need it if imagelist
    functionality covers such grayscale conversion for 32bpp. <br>
    <br>
    <blockquote type="cite">
      <pre style="color: rgb(0, 0, 0); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; overflow-wrap: break-word; white-space: pre-wrap;">+    const COLORREF win_solid[] =
+    {
+        RGB(0xac, 0xa8, 0x99), /* winXP*/
+        RGB(0x80, 0x80, 0x80), /* win2008*/
+        RGB(0xa0, 0xa0, 0xa0)  /* win10*/
+    };</pre>
    </blockquote>
    Does this come from theme/system colors by any chance?<br>
  </body>
</html>