Board index » cppbuilder » implementing resizing in borderless form

implementing resizing in borderless form

Hi,

Could you tell me how to implement form resizing (like in a usual form -
dragging right bottom corner) when a form has no border?

Thanks
Maciek

 

Re:implementing resizing in borderless form


Actually I solved it :)

void __fastcall TForm1::WMNCHitTest(TMessage &Msg)
{
    TForm::Dispatch(&Msg);
    if (Msg.LParamLo > Left + Width - 15 && Msg.LParamHi > Top + Height -
15)
    {
     Msg.Result = HTBOTTOMRIGHT;
    }

Quote
}

Other Threads