适配windows(测试)

This commit is contained in:
DelLevin-Home
2026-06-30 23:01:37 +08:00
parent 1192f8f7e0
commit afd012b766
9 changed files with 75 additions and 13 deletions

View File

@@ -197,6 +197,12 @@ Win32Window::MessageHandler(HWND hwnd,
return 0;
}
case WM_GETMINMAXINFO: {
auto info = reinterpret_cast<MINMAXINFO*>(lparam);
info->ptMinTrackSize.x = 360;
info->ptMinTrackSize.y = 640;
return 0;
}
case WM_SIZE: {
RECT rect = GetClientArea();
if (child_content_ != nullptr) {