#pragma comment(lib, "Dwmapi.lib") //这个别忘了
BOOL bEnable = TRUE;
if(S_OK == DwmIsCompositionEnabled(&bEnable))
{
if(!bEnable)
{
AfxMessageBox(_T("Areo 主题未开启"));
}
else{
AfxMessageBox(_T("Areo 主题已开启"));
}
}