改变listview的文字色彩
改变listview的文字颜色
想用sendmessage 改变其他程序的listview的文字颜色 但是一直不知道该怎么搞
求解
------解决方案--------------------
自定义一个消息撒,在消息响应函数里操作就是了
------解决方案--------------------
因为大家都不会啊
应该是发送消息。但必须先得到该控件的句柄......
至于有没有修改其颜色的消息,就不清楚了。SetTextColor也只是个函数吧
------解决方案--------------------
“ 改变其他程序的listview的文字颜色”
hook 那个 窗口 的 Onpaint
------解决方案--------------------
我记得有个消息可以把,找到listcontrol的句柄,发送这个消息?难道不可以吗
------解决方案--------------------
我不记得有这个消息。
------解决方案--------------------
ListView_SetTextColor macro
This topic has not yet been rated - Rate this topic
Sets the text color of a list-view control. You can use this macro or send the LVM_SETTEXTCOLOR message explicitly.
Syntax
C++
BOOL ListView_SetTextColor(
HWND hwnd,
COLORREF clrText
);
------解决方案--------------------
那就找到窗口句柄,发消息看看。
------解决方案--------------------
改变其它进程中的ListView控件,估计你的dll注入吧
想用sendmessage 改变其他程序的listview的文字颜色 但是一直不知道该怎么搞
求解
C++
listview
sendmessage
------解决方案--------------------
自定义一个消息撒,在消息响应函数里操作就是了
------解决方案--------------------
因为大家都不会啊
应该是发送消息。但必须先得到该控件的句柄......
至于有没有修改其颜色的消息,就不清楚了。SetTextColor也只是个函数吧
------解决方案--------------------
“ 改变其他程序的listview的文字颜色”
hook 那个 窗口 的 Onpaint
------解决方案--------------------
我记得有个消息可以把,找到listcontrol的句柄,发送这个消息?难道不可以吗
------解决方案--------------------
我不记得有这个消息。
------解决方案--------------------
ListView_SetTextColor macro
This topic has not yet been rated - Rate this topic
Sets the text color of a list-view control. You can use this macro or send the LVM_SETTEXTCOLOR message explicitly.
Syntax
C++
BOOL ListView_SetTextColor(
HWND hwnd,
COLORREF clrText
);
------解决方案--------------------
那就找到窗口句柄,发消息看看。
------解决方案--------------------
改变其它进程中的ListView控件,估计你的dll注入吧