As explained multiple times, there is no AdvSmoothDockDesktop unit, you need to declare the following code in the same file as were the form declaration is present (.h file)
class TAdvSmoothDockDesktop : public TAdvSmoothDock
{
};
class TForm1 : public TForm
{
__published: // IDE-managed Components
private: // User declarations
public: // User declarations
__fastcall TForm1(TComponent* Owner);
};
//----
Afterwards, you can use the following code in the .cpp file
void __fastcall TForm1::FormCreate(TObject Sender)
{
(static_cast<TAdvSmoothDockDesktop>(AdvSmoothDock1))->DockOnDeskTop = true;
this->BorderStyle = bsNone;
this->Height = 0;
this->Hide();
}
//---------------------------------------------------------------------------
void __fastcall TForm1::FormShow(TObject Sender)
{
AdvSmoothDock1->ShowForm();
(static_cast<TAdvSmoothDockDesktop>(AdvSmoothDock1))->AlignDesktop(adBottom);
}