TWinControlHandle (Delphi)

From RAD Studio Code Examples
Jump to: navigation, search

Description

The following code uses the Windows API function ShowWindow to display Form2 as an icon, but does not activate it.

Code

procedure TForm1.Button1Click(Sender: TObject);
begin
  ShowWindow(Form2.Handle, SW_SHOWMINNOACTIVE);
end;

Uses