HBRUSH CMyBtn::CtlColor(CDC* pDC, UINT nCtlColor)
{
pDC->SetTextColor( m_clrText ); // text
pDC->SetBkColor( m_clrBkgnd ); // text bkgnd
return m_brBkgnd; // ctl bkgnd
//return NULL;
}代码如上,但按钮的背景色没有改变
{
pDC->SetTextColor( m_clrText ); // text
pDC->SetBkColor( m_clrBkgnd ); // text bkgnd
return m_brBkgnd; // ctl bkgnd
//return NULL;
}代码如上,但按钮的背景色没有改变
不要包含你的这个 button id。