想用sendmessage 改变其他程序的listview的文字颜色 但是一直不知道该怎么搞
求解C++listviewsendmessage

解决方案 »

  1.   


    我想改变外部程序的一个listview里某项的文字颜色 能讲详细点吗
      

  2.   

    因为大家都不会啊
    应该是发送消息。但必须先得到该控件的句柄......
    至于有没有修改其颜色的消息,就不清楚了。SetTextColor也只是个函数吧
      

  3.   

    改变颜色和 消息什么关系直接onpaint中画出
      

  4.   

    “ 改变其他程序的listview的文字颜色”hook 那个 窗口 的 Onpaint
      

  5.   


    我记得有个消息可以把,找到listcontrol的句柄,发送这个消息?难道不可以吗
      

  6.   


    ListView_SetTextColor macroThis 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
    );
      

  7.   

    改变其它进程中的ListView控件,估计你的dll注入吧