TWinControlHandle (C++)

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

#include "Unit2.h"

void __fastcall TForm1::Button1Click(TObject *Sender)
{
  ShowWindow(Form2->Handle, SW_SHOWMINNOACTIVE);
}

Uses