Skip to content

Fix issue 22837: No more blank buttons on toolbar after resizing the window. #22838

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Nov 22, 2022

Conversation

dan-masek
Copy link
Contributor

Slightly related to #22806, since I've mentioned there

However, with WINDOW_NORMAL, some wonkiness still remains and blank buttons tend to appear once in a while

This fixes that "wonkiness". Details are in the bug report, including a screenshot with the patch applied.

… invoking `SendMessage` whose return call is ignored.
…ocation of `WM_NCCALCSIZE` handler to avoid blank placeholder buttons from appearing.
Copy link
Contributor

@AleksandrPanov AleksandrPanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked, the problem is reproduced, PR fixes the problem. Before fix:
image

After fix:
image

LGTM

@asmorkalov asmorkalov merged commit aba2167 into opencv:3.4 Nov 22, 2022
@alalek alalek mentioned this pull request Dec 3, 2022
@alalek alalek mentioned this pull request Jan 8, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Blank buttons appear on toolbar with multiple trackbars after window is resized in WinAPI HighGUI backend
4 participants