BCGControlBar Pro for MFC
BOOL CBCGPWinApp::m_bThemedMessageBox
protected

Set this member to FALSE to disable themed message boxes (displayed By AfxMessageBox).