added or/and improved closable, minimizable, movable, resizable features for windows on os x and windows

This commit is contained in:
evgenyzinoviev 2016-01-18 23:46:35 +01:00
parent 7842a657d0
commit 2a554cb138
11 changed files with 255 additions and 36 deletions

View file

@ -89,10 +89,19 @@ bool NativeWindowViews::PreHandleMSG(
if (HIWORD(w_param) == THBN_CLICKED)
return taskbar_host_.HandleThumbarButtonEvent(LOWORD(w_param));
return false;
case WM_SIZE:
// Handle window state change.
HandleSizeEvent(w_param, l_param);
return false;
case WM_MOVING: {
if (!movable_) {
::GetWindowRect(GetAcceleratedWidget(), (LPRECT)l_param);
}
return false;
}
default:
return false;
}