Re: wxStaticBitmap masking/color problems with comctl 6 (#16351)

9 views
Skip to first unread message

Richard Thomson

unread,
Jul 11, 2026, 11:13:05 PM (2 days ago) Jul 11
to wx-...@googlegroups.com, wxtrac, Author
LegalizeAdulthood left a comment (wxWidgets/wxWidgets#16351)

I checked this against the current MSW implementation and it appears to have already been addressed.

The current src/msw/statbmp.cpp handles alpha bitmaps specially before passing them to the native static control with STM_SETIMAGE: it converts alpha bitmaps to a temporary non-premultiplied DIB, avoiding the double alpha premultiplication problem in the native control. Local history shows this was added by commit cc4658d1f4 ("Fix display of bitmaps with alpha in wxStaticBitmap under MSW.").

This matches the 2016 note above saying the problem was reproducible in 3.0.2 but OK in 3.1.

I also rebuilt and ran the focused current tests:

  • wxStaticBitmap::Set
  • wxStaticBitmap::ResourceLeak

Both pass on current MSW.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you authored the thread.Message ID: <wxWidgets/wxWidgets/issues/16351/4949750542@github.com>

Reply all
Reply to author
Forward
0 new messages