sa
2008-06-16 06:03:00 UTC
Hi all.
I want to display a form always top.
I created a Project1 with Form1 (BCB6)
//header file
void __fastcall TForm1::CreateParams(TCreateParams &Params)
//cpp file
void __fastcall TForm1::CreateParams(TCreateParams &Params)
{
TForm::CreateParams(Params);
Params.ExStyle = Params.ExStyle | WS_EX_PALETTEWINDOW;
Params.WndParent = GetDesktopWindow();
}
//---------------------------------------------------------------------------
1.Problem is 2 instances in the Task Manager (Project1 and Form1). Is there
anyway to remove Form1 instance in the TaskManager-Applications.
Kind Regards
SA
I want to display a form always top.
I created a Project1 with Form1 (BCB6)
//header file
void __fastcall TForm1::CreateParams(TCreateParams &Params)
//cpp file
void __fastcall TForm1::CreateParams(TCreateParams &Params)
{
TForm::CreateParams(Params);
Params.ExStyle = Params.ExStyle | WS_EX_PALETTEWINDOW;
Params.WndParent = GetDesktopWindow();
}
//---------------------------------------------------------------------------
1.Problem is 2 instances in the Task Manager (Project1 and Form1). Is there
anyway to remove Form1 instance in the TaskManager-Applications.
Kind Regards
SA