Delphi-Quellcode:
private
{ Private-Deklarationen }
procedure WMNCHitTest(
var Msg: TWMNCHitTest);
message WM_NCHITTEST;
:
:
procedure TForm.WMNCHitTest(
var Msg: TWMNCHitTest);
begin
DefaultHandler(Msg);
if Msg.Result = HTCAPTION
then
Msg.Result:=0;
end;
procedure TForm.FormCreate(Sender: TObject);
const
MnuCommand = SC_MOVE;
var
SysMenu : HMenu;
begin
SysMenu := GetSystemMenu(
Handle, FALSE) ;
DeleteMenu(SysMenu, MnuCommand, MF_BYCOMMAND);
end;
und Form.BorderStyle := bsSingle;