Update generic wxTreeCtrl state images when DPI changes (PR #26060)

7 views
Skip to first unread message

VZ

unread,
Dec 31, 2025, 10:24:47 AM (19 hours ago) 12/31/25
to wx-...@googlegroups.com, Subscribed

Ensure that wxTreeCtrl using only state images, without the normal ones, is still updated correctly when the DPI changes: this didn't happen previously because OnImagesChanged() was only called for the control with normal images.

As changing HasImages() to return true if there are only state images is almost certainly a bad idea for compatibility reasons (existing code may assume that it can use normal images if it returns true), add a new HasAnyImages() function and override it in wxTreeCtrl to account for the state images too.

Closes #26059.


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/26060

Commit Summary

  • 2571f03 Update generic wxTreeCtrl state images when DPI changes

File Changes

(3 files)

Patch Links:


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/pull/26060@github.com>

Reply all
Reply to author
Forward
0 new messages