price per item is printed

This commit is contained in:
atseirjo
2026-10-28 12:32:49 +01:00
parent c32adbad50
commit 77fbe16867
31 changed files with 656 additions and 55 deletions
+13
View File
@@ -51,6 +51,19 @@ LRESULT
FlutterWindow::MessageHandler(HWND hwnd, UINT const message,
WPARAM const wparam,
LPARAM const lparam) noexcept {
if (message == WM_GETMINMAXINFO) {
// Logical client size; include the DPI-scaled title bar and window borders.
const UINT dpi = GetDpiForWindow(hwnd);
RECT minimum = {0, 0, MulDiv(320, dpi, 96), MulDiv(480, dpi, 96)};
AdjustWindowRectExForDpi(
&minimum, static_cast<DWORD>(GetWindowLongPtr(hwnd, GWL_STYLE)), FALSE,
static_cast<DWORD>(GetWindowLongPtr(hwnd, GWL_EXSTYLE)), dpi);
auto* sizes = reinterpret_cast<MINMAXINFO*>(lparam);
sizes->ptMinTrackSize.x = minimum.right - minimum.left;
sizes->ptMinTrackSize.y = minimum.bottom - minimum.top;
return 0;
}
// Give Flutter, including plugins, an opportunity to handle window messages.
if (flutter_controller_) {
std::optional<LRESULT> result =