Skip to content

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

Merged
asmorkalov merged 2 commits intoopencv:3.4from
dan-masek:fix_issue_22837
Nov 22, 2022
Merged

Fix issue 22837: No more blank buttons on toolbar after resizing the window.#22838
asmorkalov merged 2 commits intoopencv:3.4from
dan-masek:fix_issue_22837

Conversation

@dan-masek
Copy link
Copy Markdown
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
Copy Markdown
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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