Add borderless editor host chrome
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user