TfrmMain = class(TAdvToolBarForm) error in drawing

TfrmMain = class(TForm)
Changed to
TfrmMain = class(TAdvToolBarForm)
 
The MainApplication does not draw the Systembuttons correctly

Problem is Solved.

 
Remove the 'XPManifest' from the MainForm
Remove the 'XPMan' from the Uses