看看这个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
ParentFont默认就是false
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