On Thu, 12 Jun 2025 16:51:50 -0700 (PDT) Dan Korn wrote:
DK> I do indeed see a difference in behavior between wxWidgets 3.1 and 3.2,
DK> on the same Windows machine. Specifically, between versions 3.1.2 and
DK> 3.2.4. I'm on Windows 10 Pro, but the same issue occurs on Windows 11
DK> with wxWidgets 3.2.
OK, thanks, so we can't blame Microsoft this time. Well, it was worth a
try...
DK> I also see the call to TreeView_EnsureVisible (the macro equivalent of
DK> TVM_ENSUREVISIBLE) in wxTreeCtrl::EnsureVisible() in
DK> src/msw/treectrl.cpp. And that does seem to have been unchanged for
DK> quite some time. Nevertheless, there is this difference in behavior
DK> when it's called multiple times.
So you can't reproduce this in the treectrl sample? It has menu item for
making the last item visible and if the problem could be reproduced there,
it would make it much simpler for me to debug it. Of course, if it can't,
but you can provide a simple patch to the sample allowing to do it, please
do it and please open an issue on GitHub and attach this patch to it.
DK> Do you have any idea how to find the relevant code change and work
DK> around it?
The brute force solution would be to run git-bisect between 3.1.2 and
3.2.4. There are ~8000 commits there, but this is still just 13 iterations,
so bisect shouldn't be too onerous to do. And finding the commit which
broke it should give at least some idea of what the problem is.
DK> We do need other changes in wxWidgets 3.2, so rolling back completely
DK> is not a good solution.
BTW, have you tried 3.3.0? I don't see any changes that could affect this,
but if it works there, upgrading directly to it could be a solution.
Otherwise, I'd really need some way of reproducing the problem to be able
to do anything about it.
Good luck,