Jump to content
  • Advertisement
Sign in to follow this  
31337noob

listview text color

This topic is 4829 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

ok here is my question. how do you set a certain cell text color? i used SNDMSG(pinfo,LVM_SETTEXTCOLOR,0,(LPARAM)RGB(255,0,0)); ,but that sets the whole listview and i dont want that. does anyone have any idea how? thanks in advanced.

Share this post


Link to post
Share on other sites
Advertisement
You can't. Directly. But you can look into the NM_CUSTOMDRAW notify message. This allows you to process paint events in the parent class. It's a little complicated though. You'll get several messages; before painting (to ask what you want to paint yourself) and then depending on your return several other messages during the paint process.

Look into the MSDN for a full description.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!