判断当前电脑主题是否是Areo主题

#pragma comment(lib, "Dwmapi.lib")   //这个别忘了

BOOL bEnable = TRUE;

if(S_OK == DwmIsCompositionEnabled(&bEnable))

    {
            if(!bEnable)
            {
              AfxMessageBox(_T("Areo 主题未开启"));
            }

           else{

               AfxMessageBox(_T("Areo 主题已开启"));

            }

}

猜你喜欢

转载自blog.csdn.net/luo_sen/article/details/87983519