-
August 29th, 2014, 04:51 AM
#1
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.
-
August 29th, 2014, 05:30 AM
#2
Re: What is the correct behavior of list control?
Originally Posted by OneEyeMan
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.
Originally Posted by OneEyeMan
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
-
August 29th, 2014, 01:58 PM
#3
Re: What is the correct behavior of list control?
Hi, Victor,
Originally Posted by VictorN
... 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.'
-
August 29th, 2014, 02:47 PM
#4
Re: What is the correct behavior of list control?
Well, did you test it? What goes wrong or not expected?
Victor Nijegorodov
-
August 30th, 2014, 03:46 AM
#5
Re: What is the correct behavior of list control?
Originally Posted by OneEyeMan
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|