Skip to content

Make the window resizable and DPI aware - #13

Merged
KyleSpicer merged 1 commit into
rc1.0.0from
12-gui-resize
Oct 28, 2026
Merged

KyleSpicer merged 1 commit into
rc1.0.0from
12-gui-resize

Conversation

@KyleSpicer

Copy link
Copy Markdown
Owner

Makes the main window resizable and DPI aware.

  • The window can be resized and maximized, and the fields widen to fit.
  • Layout is defined at 96 DPI and scaled to the window's DPI; it re-lays out on WM_DPICHANGED when moved between monitors.
  • Per-monitor v2 DPI awareness is set before any window is created.
  • Adds CHANGELOG.md, a developer guide step to keep it updated, and a resize note in the user guide.

Part of #11 (covers its DPI awareness item)

The main window can now be resized and maximized, and the fields widen to
fit. Layout sizes are defined at 96 DPI and scaled to the window's DPI on
every WM_SIZE, WM_GETMINMAXINFO keeps the client area from shrinking below
its starting size, and WM_DPICHANGED re-lays the window out when it moves
to a monitor with a different scale. The process opts into per-monitor v2
DPI awareness before any window is created, so Windows scales the frame
and common controls instead of stretching a 96 DPI bitmap.

Also adds CHANGELOG.md for user-visible changes, a step in the developer
guide to update it, and a note on resizing in the user guide.

Part of #11 (DPI awareness).
@KyleSpicer KyleSpicer added this to the v1.0.0 milestone Oct 28, 2026
@KyleSpicer KyleSpicer self-assigned this Oct 28, 2026
@KyleSpicer
KyleSpicer merged commit 05b599b into rc1.0.0 Oct 28, 2026
4 checks passed
@KyleSpicer
KyleSpicer deleted the 12-gui-resize branch October 28, 2026 01:04
KyleSpicer added a commit that referenced this pull request Oct 28, 2026
Make the window resizable and DPI aware
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant