可以用brush,也可用SetPixel(xixi~~~~),在OnCtrlColor函数中自行该代码。

解决方案 »

  1.   

    改变控件文字的颜色和字体可以在CDialog::OnCtrlColor()里更改,但控件的背景颜色就要对控件写派生类了
      

  2.   

    查阅msdn
    在一篇称为"sequently asked question"的article中有这个问题的解决方法
      

  3.   

    据我所知,以上方法可以在控件生成时改变背景色,但不能在运行时改变颜色.
    msdn
    在一篇称为"sequently asked question"的artical是关于SQL SERVER的.   
      

  4.   

    lhchl(lhhcl):
    在::onpaint()中吗?
    不知您有否source code?
    或那里可以找到source code?
      

  5.   

    我到是做过,可我现在是在网吧上的网。你到http://www.chinaithero.com/dev/vccool/button.htm去看看吧,也许有答案。
      

  6.   

    lhchl(lhhcl):
    my e-mail is : [email protected]
    pls contact me if you have the source code or other idea want to share with me.
    tks
      

  7.   

    you too!
    http://www.chinaithero.com/dev/vccool/button.htm中无要找的对象.
      

  8.   

    http://www.csdn.net/develop/read_article.asp?id=9603
      

  9.   

    jiangsheng(蒋晟):
    谢谢! 那正是我想要的!