TAdvPageControl remove margin

I want delphi xe7 TAdvPageControl margin control.
I can't remove 3px.
I tried alignWithMargin := True, Margins.SetBounds(0,0,0,0), page and tab.
and I want change hilighted tab bottom 1px color too.

thank you.

This is sadly a shortcoming in Windows itself and is not related to TAdvPageControl.

TAdvPageControl is just like the standard VCL TPageControl a wrapper around the Windows page control and it is as such the Windows control class that determines this behaviour.
The client rectangle of the tabsheet always takes this border in account and this is independent of the Margin that can be set and is used at VCL level.