请问如何改变Border为:bsNone的窗体大小,就如bsSizeable的一样????? 请问如何改变Border为:bsNone的窗体大小,就如bsSizeable的一样???打错了,是BorderStyle 为:bsNone 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 unit Unit2;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs;type TForm2 = class(TForm) private { Private declarations } public { Public declarations } procedure WMNCHITTEST(var Msg: TWMNCHITTEST); message WM_NCHITTEST; end;var Form2: TForm2;implementation{$R *.dfm}{ TForm2 }procedure TForm2.WMNCHITTEST(var Msg: TWMNCHITTEST);var vPoint: TPoint; vRect: TRect;begin inherited; GetWindowRect(Handle, vRect); vPoint.X := Msg.XPos; vPoint.Y := Msg.YPos; if PtInRect(Rect(vRect.Right - 5, vRect.Top + 5, vRect.Right + 5, vRect.Bottom - 5), vPoint) then Msg.Result := HTRIGHT else if PtInRect(Rect(vRect.Left - 5, vRect.Top + 5, vRect.Left + 5, vRect.Bottom - 5), vPoint) then Msg.Result := HTLEFT else if PtInRect(Rect(vRect.Left + 5, vRect.Top - 5, vRect.Right - 5, vRect.Top + 5), vPoint) then Msg.Result := HTTOP else if PtInRect(Rect(vRect.Left + 5, vRect.Bottom - 5, vRect.Right - 5, vRect.Bottom + 5), vPoint) then Msg.Result := HTBOTTOM else if PtinRect(Rect(vRect.Left - 5, vRect.Top - 5, vRect.Left + 5, vRect.Top + 5), vPoint) then Msg.Result := HTTOPLEFT else if PtInRect(Rect(vRect.Right - 5, vRect.Bottom - 5, vRect.Right + 5, vRect.Bottom + 5), vPoint) then Msg.Result := HTBOTTOMRIGHT else if PtInRect(Rect(vRect.Left - 5, vRect.Bottom - 5, vRect.Left + 5, vRect.Bottom + 5), vPoint) then Msg.Result := HTBOTTOMLEFT else if PtInRect(Rect(vRect.Right - 5, vRect.Top - 5, vRect.Right + 5, vRect.Left + 5), vPoint) then Msg.Result := HTTOPRIGHT;end;end. 排名进一万散分 执行问题送100 请教一个类的写法 怎么实现在本地数据集里面实现记录定位? 一个关于用qrepot打印的问题,在线等待 当场给分 edit输入问题。(在线等) 这句话有什么错误?不明白 用delphi做的api 用VBA怎么调不了???? 关于网页源码字符串的截取...... 我是一位菜鸟,想请教各位高手! adoquery的filter在做模糊查询的时候总是出错 一个很菜的Adoquery的问题
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;type
TForm2 = class(TForm)
private
{ Private declarations }
public
{ Public declarations }
procedure WMNCHITTEST(var Msg: TWMNCHITTEST); message WM_NCHITTEST;
end;var
Form2: TForm2;implementation{$R *.dfm}{ TForm2 }procedure TForm2.WMNCHITTEST(var Msg: TWMNCHITTEST);
var
vPoint: TPoint;
vRect: TRect;
begin
inherited;
GetWindowRect(Handle, vRect);
vPoint.X := Msg.XPos;
vPoint.Y := Msg.YPos;
if PtInRect(Rect(vRect.Right - 5, vRect.Top + 5, vRect.Right + 5,
vRect.Bottom - 5), vPoint) then
Msg.Result := HTRIGHT
else if PtInRect(Rect(vRect.Left - 5, vRect.Top + 5, vRect.Left + 5,
vRect.Bottom - 5), vPoint) then
Msg.Result := HTLEFT
else if PtInRect(Rect(vRect.Left + 5, vRect.Top - 5, vRect.Right - 5,
vRect.Top + 5), vPoint) then
Msg.Result := HTTOP
else if PtInRect(Rect(vRect.Left + 5, vRect.Bottom - 5, vRect.Right - 5,
vRect.Bottom + 5), vPoint) then
Msg.Result := HTBOTTOM
else if PtinRect(Rect(vRect.Left - 5, vRect.Top - 5, vRect.Left + 5,
vRect.Top + 5), vPoint) then
Msg.Result := HTTOPLEFT
else if PtInRect(Rect(vRect.Right - 5, vRect.Bottom - 5, vRect.Right + 5,
vRect.Bottom + 5), vPoint) then
Msg.Result := HTBOTTOMRIGHT
else if PtInRect(Rect(vRect.Left - 5, vRect.Bottom - 5, vRect.Left + 5,
vRect.Bottom + 5), vPoint) then
Msg.Result := HTBOTTOMLEFT
else if PtInRect(Rect(vRect.Right - 5, vRect.Top - 5, vRect.Right + 5,
vRect.Left + 5), vPoint) then
Msg.Result := HTTOPRIGHT;
end;end.