price per item is printed
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user