Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

This should actually fix issue #351 #367

Merged
merged 1 commit into from
Feb 2, 2024
Merged

Conversation

Wallby
Copy link
Contributor

@Wallby Wallby commented Feb 1, 2024

The patch I submitted wasn't intended to be "ready to commit". This seems to be solid as far as I have tested. It uses GetWindowLong to determine whether WS_VISIBLE is set for the spin control.

The problem with the patch turned out to be that WM_PAINT was sent to the TabBar_Proc (and thus RunProc) before WM_PAINT was sent to TabBarSpin_Proc.

Also removed the SubclassSpinBox function and replaced it with WM_PARENTNOTIFY in RunProc.

…messages that turned out to not be guaranteed, this doesn't rely on such an order. Also removed SubclassSpinBox function and moved the code from that to be handled via the WM_PARENTNOTIFY message in RunProc.
@stefankueng stefankueng merged commit c0a1097 into stefankueng:main Feb 2, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants