CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 1999
    Posts
    12

    List Control & Colors


    When I insert items into a list control.. Can
    I change the color of the text that is displayed?

    Thanks in advance!


  2. #2
    Join Date
    Sep 1999
    Location
    Europe / Austria / Innsbruck
    Posts
    442

    Re: List Control & Colors

    Hi. Yes, you must create the list control with style LVS_OWNERDRAWFIXED. Then the list control will send the message WM_DRAWITEM for each list item to its parent. In the parent catch this message and draw the list item in the way you like.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured