CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2002
    Posts
    756

    What is the correct behavior of list control?

    Hi, ALL,
    There is a list control in Windows.
    When I create a list control I can assign an image list to it with the ListView_SetImageList().
    By default, when just created there is no image list assigned as can be checked with ListView_GetImageList().

    Now, what should happen when I do following call:

    Create list control.
    Create an image list
    Get the current image list
    Assign an image list to list control
    Display some items
    Assign an old image list to list control.

    Does strings on the list control should be indented?

    Thank you.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: What is the correct behavior of list control?

    Quote Originally Posted by OneEyeMan View Post
    When I create a list control I can assign an image list to it with the ListView_SetImageList().
    ... or you can call CListCtrl::SetImageList method.

    Quote Originally Posted by OneEyeMan View Post
    Now, what should happen when I do following call:

    Create list control.
    Create an image list
    Get the current image list
    Assign an image list to list control
    Display some items
    Assign an old image list to list control.

    Does strings on the list control should be indented?
    Good question!
    Don't you currently have a PC with installed VC IDE, so you ask a community to test it for you?
    Victor Nijegorodov

  3. #3
    Join Date
    Aug 2002
    Posts
    756

    Re: What is the correct behavior of list control?

    Hi, Victor,
    Quote Originally Posted by VictorN View Post
    ... or you can call CListCtrl::SetImageList method.

    Good question!
    Don't you currently have a PC with installed VC IDE, so you ask a community to test it for you?
    I'm not asking to test it - I'm asking what should be the most logical outcome of such algorythm.

    Thank you.'

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: What is the correct behavior of list control?

    Well, did you test it? What goes wrong or not expected?
    Victor Nijegorodov

  5. #5
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: What is the correct behavior of list control?

    Quote Originally Posted by OneEyeMan View Post
    I'm not asking to test it - I'm asking what should be the most logical outcome of such algorythm.
    Not sure if speculation on what should be the most logical in the situation like that would have any value. Anyway, you are not able to change the design of list control. You either find the answer in official documentation or figure it out by explicit test.
    Best regards,
    Igor

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