BCGSuite for MFC
BOOL CBCGPDialog::HasAeroMargins ( ) const
inline

Tells whether a window has "DWM (glass) margins.

Returns
TRUE if DWM margins are specified, FALSE if not.

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