Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
...
private:
[color green]unsigned long WM_TASKBARCREATED;[/color]
[color green]void __fastcall WndProc(TMessage &Msg);[/color]
...
//-----------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
[color green]WM_TASKBARCREATED = RegisterWindowMessage("TaskbarCreated");[/color]
}
[color green]void __fastcall TForm1::WndProc(TMessage &Msg)
{
if(Msg.Msg == WM_TASKBARCREATED)
{
TrayIcon_Create(); [color blue][i]// Add the icon[/i][/color]
}
TForm::WndProc(Msg);
}
[/color]