SubZero
2007-11-01 19:29:22 UTC
Hello,
The below code does not work, any ideas:
void __fastcall TLoginForm::CreateParams(TCreateParams &Params)
{
TForm::CreateParams(Params);
Params.ExStyle |= WS_EX_APPWINDOW;
Params.WndParent = GetDesktopWindow();
hideApplicationFromTaskbarManager();
}
void __fastcall hideApplicationFromTaskbarManager(void) // hide the
Application window totally
{
Forms::Application->Title = ""; // to remove from task manager!
ShowWindow(Forms::Application->Handle, SW_HIDE);
SetWindowLong(Forms::Application->Handle,
GWL_EXSTYLE,
WS_EX_TOOLWINDOW);
ShowWindow(Forms::Application->Handle, SW_SHOW);
}
//---------------------------------------------------------------------------
Best Regards,
SZ
The below code does not work, any ideas:
void __fastcall TLoginForm::CreateParams(TCreateParams &Params)
{
TForm::CreateParams(Params);
Params.ExStyle |= WS_EX_APPWINDOW;
Params.WndParent = GetDesktopWindow();
hideApplicationFromTaskbarManager();
}
void __fastcall hideApplicationFromTaskbarManager(void) // hide the
Application window totally
{
Forms::Application->Title = ""; // to remove from task manager!
ShowWindow(Forms::Application->Handle, SW_HIDE);
SetWindowLong(Forms::Application->Handle,
GWL_EXSTYLE,
WS_EX_TOOLWINDOW);
ShowWindow(Forms::Application->Handle, SW_SHOW);
}
//---------------------------------------------------------------------------
Best Regards,
SZ