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

Retrieves the dialog DWM (glass) margins.

Parameters
marginsDialog DWM margins.

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