Click here to Skip to main content
15,395,877 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
What i need
Does LVS_EX_LABELTIP for Win32 ListView automatically implement showing tooltips for truncated items (i.g."Hello, W...")? Like style LVS_EX_CHECKBOXES which works "out of the box".

Or is it developers responsibility? (From reading MSDN i assume that it should work out of the box: "If a partially hidden label in any list view mode lacks tooltip text, the list-view control will unfold the label").

Edit: my ListView must have LVS_REPORT

What I have tried:

i tried to set all styles that rely to this topic.
i've searched the google, but can't see any example of "out of the box" being proven.

Posted
Updated 30-Oct-21 3:08am
v3
Comments
Rick York 25-Oct-21 15:06pm
   
I wouldn't worry about it. I would try it and find out and then deal with the results.
Avtem 25-Oct-21 23:26pm
   
But what if it does work and I just have an incompatible flag on my ListView? BTW i use LVS_REPORT

1 solution

the label tip has some standard amount of characters, so a lengthly text gets truncated. Your flag is to override that default behaviour.

"If a partially hidden label in any list view mode lacks tooltip text, the list-view control will unfold the label. If this style is not set, the list-view control will unfold partly hidden labels only for the large icon mode." It means that a label already must exist, and only the full display will enforced.

See MSDN to read the fineprint.
   
Comments
Avtem 29-Oct-21 4:27am
   
i am sorry, but for me it is really hard to understand what you wrote here. "The label tip has some standard amount of characters" - aren't labels truncated based on their width relative to column width?
"Your flag is to override that default behaviour" - What does it actually override? A lengthly text won't be truncated anymore?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900