//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop
//---------------------------------------------------------------------------
USEFORM("uMain.cpp", MainForm);
USEFORM("uDockForm.cpp", DockableForm);
USEFORM("uTabHost.cpp", TabDockHost);
USEFORM("uConjoinHost.cpp", ConjoinDockHost);
//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
	try
	{
		Application->Initialize();
		SetApplicationMainFormOnTaskBar(Application, true);
		Application->CreateForm(__classid(TMainForm), &MainForm);
		Application->CreateForm(__classid(TDockableForm), &DockableForm);
		Application->CreateForm(__classid(TTabDockHost), &TabDockHost);
		Application->CreateForm(__classid(TConjoinDockHost), &ConjoinDockHost);
		Application->Run();
	}
	catch (Exception &exception)
	{
		Application->ShowException(&exception);
	}
	catch (...)
	{
		try
		{
			throw Exception("");
		}
		catch (Exception &exception)
		{
			Application->ShowException(&exception);
		}
	}
	return 0;
}
//---------------------------------------------------------------------------
