install_frameless_resize_hook

Function install_frameless_resize_hook 

Source
pub(super) unsafe fn install_frameless_resize_hook(hwnd: *mut c_void)
Expand description

Install a WndProc hook on a SECONDARY window that handles:

  • WM_NCCALCSIZE: returns 0 to eliminate the non-client area (removes the wide title bar / top border that WS_THICKFRAME + DWM extension creates)
  • WM_NCHITTEST: returns HT{LEFT,RIGHT,…} for resize zones at window edges

MUST NOT be installed on the main CEF Views window — that window handles resize through its delegate, and hooking it clobbers CEF internals.