Discussion:
How to: Listview and "hidden text" tooltips. LVM_SETTOOLTIPS ? LVM_SETINFOTIP ?
(too old to reply)
R.Wieser
2024-04-15 14:53:50 UTC
Permalink
Hello all,

I've got a listview in report mode, and some of the text gets clipped. For
that I would like to use a tooltip to display all/more of that text, just
like "file explorer" does it.

The problem is that I can't seem to find a full example of it, nor a
description of what I would need to do to make it happen. :-(

Although I've found some code which will attach a tooltip to a(ny) control
(which works), I cannot find anything which describes how to create the
above "un-clipping" of text in listview element.

What I did find was the below, which, alas, was not really helpfull :

https://learn.microsoft.com/en-us/windows/win32/controls/tooltip-controls

https://learn.microsoft.com/en-us/windows/win32/controls/implement-in-place-tooltips


So, my question:

Using XPsp3 and a v5.82 Listview control :

1) How does the ToolTip control need to be created (which STYLEs and/or
EXSTYLEs ?)

2) Does the listview need extra EXSTYLEs (LVS_EX_LABELTIP and/or
LVS_EX_INFOTIP ?)

3) How do I "connect" the tooltip to the listview ? Using LVM_SETTOOLTIPS
perhaps ?

4) How will the tooltip/listview ask for the text to be displayed (which
notification message(s) ) ?

Yep, I need to know pretty-much everything. :-(

A link to an article which explains the above would be just fine. :-)

Regards,
Rudy Wieser
R.Wieser
2024-04-18 08:56:09 UTC
Permalink
Post by R.Wieser
1) How does the ToolTip control need to be created (which STYLEs and/or
EXSTYLEs ?)
[snip]

Something nagging my brain and some luck further I've figured it out.

.. and, looking back, its "so obvious" (if you know what to look for). :-(
:-)

regards,
Rudy Wieser

Loading...