Hello , how can I convert this c# code to C++/CLI code to make my borderless form SizeAble?
this->SetStyle(ControlStyles::ResizeDraw, true);
private const int cGrip=16;
private const int cCaption=32;
protected override void WndProc (ref Message m)
{
if (m.Msg==0x84)
{
Point pos = new Point(m.LParam.ToInt32());
pos = this.PointToClient (pos);
if(pos.Y < cCaption)
{
m.Result = (IntPtr)2;
return;
}
if (pos.X >= this.ClientSize.Width - cGrip && pos.Y >= this.ClientSize.Heigh - cGrip)
{
m.Result = (IntPtr)17;
return;
}
}
base.WndProc(ref m);
}