F Flintstone Unregistered / Unconfirmed GUEST, unregistred user! 2000-12-11 #1 我突然发现一个问题,就是, 南极星的那种没有标题栏也能拖动的窗体是怎么实现的了。 那位大侠能鼎立相助。小弟先谢了。
R Reboot Unregistered / Unconfirmed GUEST, unregistred user! 2000-12-11 #2 procedure WMNCHITTEST(var msg: TWMNCHITTEST); message WM_NCHITTEST; procedure TForm1.WMNCHITTEST(var msg: TWMNCHITTEST); var pt: TPoint; begin pt := ScreenToClient(Point(msg.XPos,msg.YPos)); if(pt.y<24) then msg.Result := HTCAPTION else msg.Result := HTCLIENT; end;
procedure WMNCHITTEST(var msg: TWMNCHITTEST); message WM_NCHITTEST; procedure TForm1.WMNCHITTEST(var msg: TWMNCHITTEST); var pt: TPoint; begin pt := ScreenToClient(Point(msg.XPos,msg.YPos)); if(pt.y<24) then msg.Result := HTCAPTION else msg.Result := HTCLIENT; end;