提问人:Chezi 提问时间:11/16/2023 更新时间:11/16/2023 访问量:46
从控件的 WndProc 中设置编辑控件文本颜色和背景颜色
Set Edit control text color and background color from within control's WndProc
问:
我有一个 Edit 控件子类,我想在控件的 WndProc 中设置文本颜色和背景颜色。
我不能使用 WM_CTLCOLOREDIT因为我无法控制父窗口的 WndProc,并且我宁愿避免将父窗口子类化。
可能吗?
答: 暂无答案
评论
WM_CTLCOLOREDIT
WndProc
WM_PAINT
WM_ERASEBKGND