Skip to content

Conversation

@apachezy
Copy link
Contributor

@apachezy apachezy commented Nov 6, 2025

Pull request type

Please check the type of change your PR introduces:

  • Update
  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes

What is the current behavior?

Unable to resize window by dragging the border area around the title bar.

Issue Number: #1414, #1496

What changes were made?

  • Split TitleBar class into partial classes, add TitleBar.WindowResize.cs file to separate window resize logic, maintaining code modularity and single responsibility.
  • Add WM_DPICHANGED message enum value in User32.cs and fix GetWindowRect method parameter types.

What is the new behavior?

Users can now resize the window by dragging any border area around the title bar:

2025-11-06.22-58-54.mp4

Other information

While investigating the User32.GetWindowRect method type parameter issue, I discovered similar problems in other areas. However, this PR focuses specifically on the title bar resize functionality to maintain scope and stability.

- Split `TitleBar` class into partial classes, add `TitleBar.WindowResize.cs` file to separate window resize logic, maintaining code modularity and single responsibility.

- Add `WM_DPICHANGED` message enum value in `User32.cs` and fix `GetWindowRect` method parameter types.
@apachezy apachezy requested a review from pomianowski as a code owner November 6, 2025 15:29
@github-actions github-actions bot added controls Changes to the appearance or logic of custom controls. PR Pull request dotnet release titlebar Titlebar updates labels Nov 6, 2025
@pomianowski pomianowski self-assigned this Nov 7, 2025
@pomianowski pomianowski changed the title fix(TitleBar): restore window resize capability in title bar area fix(controls): Restore window resize capability in TitleBar area Nov 7, 2025
@pomianowski pomianowski merged commit 2ace13d into lepoco:main Nov 7, 2025
2 checks passed
@apachezy apachezy deleted the fix/titlebar-resizewindow branch November 8, 2025 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

controls Changes to the appearance or logic of custom controls. dotnet PR Pull request release titlebar Titlebar updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants