I want resize my Panel Filled Form with BOTTOMLEFT, BOTTOM in addition to BOTTOMRIGHT
My Default Resizing Code Resize only Form without Panel :
const int cGrip = 16;
const int cCaption = 32;
void WndProc(Message% m) override
{
switch (m.Msg)
{
case WM_NCHITTEST:
Point pos = Point(m.LParam.ToInt32());
pos = PointToClient(pos);
if (pos.Y < cCaption)
{
m.Result = IntPtr(HTCAPTION);
return;
}
if (pos.X >= ClientSize.Width - cGrip && pos.Y >= ClientSize.Height - cGrip)
{
m.Result = IntPtr(HTBOTTOMRIGHT);
return;
}
break;
}
__super::WndProc(m);
}


