Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

USENET would be a better laboratory if there were more labor and less oratory. -- Elizabeth Haley


devel / comp.os.ms-windows.programmer.win32 / Re: How to: Listview and "hidden text" tooltips. LVM_SETTOOLTIPS ? LVM_SETINFOTIP ? - solved

SubjectAuthor
* How to: Listview and "hidden text" tooltips. LVM_SETTOOLTIPS ? LVM_SETINFOTIP ?R.Wieser
`- Re: How to: Listview and "hidden text" tooltips. LVM_SETTOOLTIPS ? LVM_SETINFOTR.Wieser

1
How to: Listview and "hidden text" tooltips. LVM_SETTOOLTIPS ? LVM_SETINFOTIP ?

<uvjf4g$bbkj$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=1214&group=comp.os.ms-windows.programmer.win32#1214

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: How to: Listview and "hidden text" tooltips. LVM_SETTOOLTIPS ? LVM_SETINFOTIP ?
Date: Mon, 15 Apr 2024 16:53:50 +0200
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <uvjf4g$bbkj$1@dont-email.me>
Injection-Date: Mon, 15 Apr 2024 16:55:13 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="fc44d76ad15a039168f4c90d0ea6937b";
logging-data="372371"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX180lOFJ714IQl2nz7PGEcCsrAyoA9IpnxX1qmkfLGHTlA=="
Cancel-Lock: sha1:0YYhmOALxh/a90ds9TkkGWVPFEM=
X-MSMail-Priority: Normal
X-RFC2646: Format=Flowed; Original
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Priority: 3
 by: R.Wieser - Mon, 15 Apr 2024 14:53 UTC

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

Re: How to: Listview and "hidden text" tooltips. LVM_SETTOOLTIPS ? LVM_SETINFOTIP ? - solved

<uvqn7q$261gk$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=1215&group=comp.os.ms-windows.programmer.win32#1215

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Re: How to: Listview and "hidden text" tooltips. LVM_SETTOOLTIPS ? LVM_SETINFOTIP ? - solved
Date: Thu, 18 Apr 2024 10:56:09 +0200
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <uvqn7q$261gk$1@dont-email.me>
References: <uvjf4g$bbkj$1@dont-email.me>
Injection-Date: Thu, 18 Apr 2024 10:56:26 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="89510f47272d109a6170d4b0dbe4f48b";
logging-data="2295316"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19SgFpm8jOB2/brU7iKIfXcYFHQGJDWyTMHfvC8+pW7jQ=="
Cancel-Lock: sha1:p4sosSFP4A+bMHqtiBg3TDHQRSE=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Response
X-MSMail-Priority: Normal
 by: R.Wieser - Thu, 18 Apr 2024 08:56 UTC

> 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 ?)
[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

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor