定义变量:CMFCButton m_MfcBotton;
设置控件颜色:
m_MfcBotton.SetFaceColor(RGB(255, 0, 0));//设置颜色
m_MfcBotton.m_bTransparent=FALSE;//设置不透明
m_MfcBotton.m_bDontUseWinXPTheme= TRUE;//设置不适用xp主题
m_MfcBotton.m_bDrawFocus = FALSE;//设置聚焦线
m_MfcBotton.m_nFlatStyle = CMFCButton::BUTTONSTYLE_FLAT;//设置Win10扁平效果