我设了checkbox的font color属性, caption还是默认的黑色
我以为是Delphi出问题了(我用的是D2010),重装了一次,还是如此
怎么回事? 还要设别的地方吗?

解决方案 »

  1.   

    不行,变不了
    ParentFont默认就是false
      

  2.   

    看看这个win32 Sdk说明,以前用MFC的时候,我就是这么修改控件的字体和颜色的。现在用delphi,终于解放了
    The WM_CTLCOLORBTN message is sent to the parent window of a button when the button is about to be drawn. By responding to this message, the parent window can set a button's text and background colors. WM_CTLCOLORBTN  
    hdcButton = (HDC) wParam;   // handle of button display context 
    hwndButton = (HWND) lParam; // handle of button 
      

  3.   

    我这在delphi2010上设置了没有问题呀
      

  4.   

    delphi 2009 设计时是正确的, 运行时却又不是设置时的颜色了
      

  5.   

    2010 也不好使,zhoutler 你用的 delphi 7.0 吧!