Button扩展累CButtonST修改字体、背景色和背景图片

CButtonST m_btnTest;

//修改字体颜色

m_btnTest.SetColor(CButtonST::BTNST_COLOR_FG_OUT, RGB(255,255,255));
m_btnTest.SetColor(CButtonST::BTNST_COLOR_FG_IN, RGB(255,255,255));

//修改背景色值
m_btnTest.SetColor(CButtonST::BTNST_COLOR_BK_OUT,RGB(45,204,112));
m_btnTest.SetColor(CButtonST::BTNST_COLOR_BK_IN, RGB(45,204,112));
m_btnTest.OffsetColor(CButtonST::BTNST_COLOR_BK_FOCUS, 12);

//添加背景图片

m_btnTest.SetBitmaps(IDB_BMP_MYCOMPUTER,RGB(255,255,255));
 m_btnTest.SetColor(CButtonST::BTNST_COLOR_BK_OUT,RGB(241,245,246));
 m_btnTest.SetColor(CButtonST::BTNST_COLOR_BK_IN, RGB(222,232,236));
 m_btnTest.OffsetColor(CButtonST::BTNST_COLOR_BK_FOCUS, 12);

你可能感兴趣的:(C++)