BCGControlBar Pro for MFC
void CBCGPDialog::GetAeroMargins ( BCGPMARGINS margins) const

Retrieves the dialog "aero" (glass) margins.

Parameters
marginsDialog aero margins.

You've to call EnableAero() method to enable or disable the aero margins.