1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ListView:how to colorize list view items in ListViewControl

Discussion in 'Win32' started by Sh@dow, Sep 29, 2010.

  1. Sh@dow

    Sh@dow New Member

    Joined:
    Sep 29, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi,
    I'm using list view control and i want to specify different colors for list view items. I know that when a specific drawing operation occurs the list view sends a custom draw notification messages to it's parent control. A parent window can process these messages and set colors for the items. I wrote an example that demonstrates this. It is working ok, but i need a bit different thing. I want that list view could be separated from the main window. Suppose we are writing a library. List View is a separate object, and knows nothing about parent window. I want that code which draws an items would be in a list view windows procedure. ( I subclassed the original with SetWindowLong function).Any suggestions?
    Thanks.
     
  2. Rakesh Kumar Pahwa

    Rakesh Kumar Pahwa New Member

    Joined:
    Jan 13, 2011
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    0
    use WM_NOTIFY msg...
     

Share This Page