Skip to content

Commit

Permalink
Start to add the window resizing support.
Browse files Browse the repository at this point in the history
  • Loading branch information
MouriNaruto committed Dec 4, 2023
1 parent 5c20520 commit 5b3717b
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion LvglWindowsSimulator/win32drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
WS_EX_CLIENTEDGE

#define WINDOW_STYLE \
(WS_OVERLAPPEDWINDOW & ~(WS_SIZEBOX | WS_MAXIMIZEBOX | WS_THICKFRAME))
WS_OVERLAPPEDWINDOW //(WS_OVERLAPPEDWINDOW & ~(WS_SIZEBOX | WS_MAXIMIZEBOX | WS_THICKFRAME))

#define LV_WINDOWS_ZOOM_BASE_LEVEL 100

Expand Down Expand Up @@ -1224,6 +1224,22 @@ static LRESULT CALLBACK lv_win32_window_message_callback(

break;
}
case WM_SIZE:
{
if (wParam != SIZE_MINIMIZED)
{
lv_win32_window_context_t* context = (lv_win32_window_context_t*)(
lv_win32_get_window_context(hWnd));
if (context)
{
/*lv_display_set_resolution(
context->display_device_object,
LOWORD(lParam),
HIWORD(lParam));*/
}
}
break;
}
#if !LV_WINDOWS_ALLOW_DPI_OVERRIDE
case WM_DPICHANGED:
{
Expand Down

0 comments on commit 5b3717b

Please sign in to comment.