case WM_NCHITTEST: { const LONG borderWidth = 9; RECT winrect; GetWindowRect(msg->hwnd, &winrect); long x = GET_X_LPARAM(msg->lParam); long y = GET_Y_LPARAM(msg->lParam);
// bottom right if (x < winrect.right && x >= winrect.right - borderWidth && y < winrect.bottom && y >= winrect.bottom - borderWidth) { *result = HTBOTTOMRIGHT; return true; }
return false; }
case WM_GETMINMAXINFO: { if (::IsZoomed(msg->hwnd)) {