procedure HitTest(var Message: TWMMouse); message CM_NCHITTEST;<br><br>procedure TXXX.HitTest(var Message: TWMMouse);<br>var<br> pt: TPoint;<br>begin<br> inherited;<br> if Message.Result in [HTCLIENT, HTBORDER] then<br> begin<br> pt := SmallPointToPoint(Message.pos);<br> if ptinrect(rect(0, 0, 5, Height), pt) then<br> Message.Result := HTLEFT<br> else if ptinrect(....) then<br> Message.Result := HTTOP<br> else if ....<br> end;<br><br>end;