type TStringGridRowDeletion = class helper for TStringGrid public procedure RemoveRows(RowIndex, RCount: Integer); procedure Clear; end;{ TStringGridRowDeletion } procedure TStringGridRowDeletion.Clear;var i: integer;begin for i := 0 to RowCou
procedure TForm2.Button1Click(Sender: TObject);var H : THandle; lngReturnValue : longint; DWResult : DWORD;begin H := FindWindow('Notepad', nil); if H > 0 then begin lngReturnValue := SendMessageTimeout( H, WM_NULL, 0, 0, SMTO_AB
procedure TForm1.Button3Click(Sender: TObject);var I, L: Integer;begin Memo1.WordWrap:= False; Memo1.Lines.LoadFromFile('Windows.pas'); I:= Pos('finalization', Memo1.Text); if I > 0 then begin L := SendMessage(Memo1.Handle, EM_