Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

autohide an application?

Status
Not open for further replies.

yoink

Programmer
Dec 2, 2001
15
AU
Hi guys,

I've got an application that i'd like to autohide (like the windows taskbar or the office shortcut bar). Any suggestions as to how to go about doing this?

Regards,

Andrew
 
Call Application->Minimize in the WinMain function before the Run method is called. For example:
Code:
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
  try
  {
    Application->Initialize();
    Application->CreateForm(__classid(TForm1), &Form1);
    Application->Minimize(); // Add this line
    Application->Run();
  }
  catch (Exception &exception)
  {
    Application->ShowException(&exception);
  }
  return 0;
}

See for more info. James P. Cottingham

I am the Unknown lead by the Unknowing.
I have done so much with so little
for so long that they think I am now
qualified to do anything with nothing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top