WM_CTLCOLOREDIT比WM_ERASEBKGND更方便,光响应WM_ERASEBKGND貌似不起作用!
To change the background color of a single-line edit control, set the brush handle in both the CTLCOLOR_EDIT and CTLCOLOR_MSGBOX message codes, and call the CDC::SetBkColor function in response to the CTLCOLOR_EDIT code.
本文介绍了一种简便的方法来改变单行编辑控件的背景颜色。通过设置CTLCOLOR_EDIT和CTLCOLOR_MSGBOX消息代码中的画笔句柄,并响应CTLCOLOR_EDIT代码调用CDC::SetBkColor函数实现。
583

被折叠的 条评论
为什么被折叠?



