Using `wxImageList` in `wxListCtrl` broken in wxMSW in high DPI (Issue #26369)

10 views
Skip to first unread message

VZ

unread,
Apr 9, 2026, 6:10:18 PM (2 days ago) Apr 9
to wx-...@googlegroups.com, Subscribed
vadz created an issue (wxWidgets/wxWidgets#26369)

I've found this while testing the fix for #26349, which was done by replacing the current listctrl sample files (.cpp and .h only) with the ones from v3.1.5, and while I don't care much about the deprecated wxImageList class, this seems to be serious: even for DPI-unaware programs (i.e. not using our manifest) its use is broken in 3.2 and later, the small icons are not displayed correctly at all:

image.png (view on web)

Debugging this shows that this happens because the icon loaded from resources is actually 32x32 and not 16x16 as expected. I think this happens because LoadIcon() only loads images of the standard size — but how could this work before if this is the reason?

In any case, it would be nice to make this work at least as well/bad as before, i.e. upscaling the icons, instead of breaking any code using wxImageList completely in high DPI.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26369@github.com>

Reply all
Reply to author
Forward
0 new messages