Add borderless editor host chrome

This commit is contained in:
2026-04-14 01:14:45 +08:00
parent 5797a75619
commit 9064c2f5f2
6 changed files with 660 additions and 3 deletions

View File

@@ -63,6 +63,18 @@ bool WindowMessageDispatcher::TryDispatch(
};
switch (message) {
case WM_NCCALCSIZE:
if (application.IsBorderlessWindowEnabled()) {
outResult = application.HandleBorderlessWindowNcCalcSize(wParam, lParam);
return true;
}
return false;
case WM_NCACTIVATE:
if (application.IsBorderlessWindowEnabled()) {
outResult = TRUE;
return true;
}
return false;
case WM_SETCURSOR:
if (LOWORD(lParam) == HTCLIENT && application.ApplyCurrentCursor()) {
outResult = TRUE;