TWinControlHandle (C++)
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
- Vcl.Controls.TWinControl.Handle ( fr | de | ja )