Fix editor host resize and dock splitter behavior

This commit is contained in:
2026-04-14 03:34:31 +08:00
parent ba91e0f5dd
commit 72d09a1c49
10 changed files with 639 additions and 115 deletions

View File

@@ -63,6 +63,13 @@ bool WindowMessageDispatcher::TryDispatch(
};
switch (message) {
case WM_GETMINMAXINFO:
if (application.IsBorderlessWindowEnabled() &&
application.HandleBorderlessWindowGetMinMaxInfo(lParam)) {
outResult = 0;
return true;
}
return false;
case WM_NCCALCSIZE:
if (application.IsBorderlessWindowEnabled()) {
outResult = application.HandleBorderlessWindowNcCalcSize(wParam, lParam);
@@ -75,6 +82,12 @@ bool WindowMessageDispatcher::TryDispatch(
return true;
}
return false;
case WM_SYSCOMMAND:
if (application.HandleBorderlessWindowSystemCommand(wParam)) {
outResult = 0;
return true;
}
return false;
case WM_SETCURSOR:
if (LOWORD(lParam) == HTCLIENT && application.ApplyCurrentCursor()) {
outResult = TRUE;