...move windows without a caption bar?

Author: Simon Grossenbacher
Homepage: http://www.swissdelphicenter.ch

Category: Forms

procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton;
  Shift: TShiftState; X, Y: Integer);
begin
  
ReleaseCapture;
  SendMessage(Form1.Handle, WM_SYSCOMMAND, $F012, 0);
end;

 

printed from
www.swissdelphicenter.ch
developers knowledge base