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 =
+2 -2
View File
@@ -26,8 +26,8 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
FlutterWindow window(project);
Win32Window::Point origin(10, 10);
Win32Window::Size size(1280, 720);
if (!window.Create(L"ertl_filament_verwaltung", origin, size)) {
Win32Window::Size size(1400, 768);
if (!window.Create(L"Filament Verwaltung", origin, size)) {
return EXIT_FAILURE;
}
window.SetQuitOnClose(true);