Tooltip (??) in a listview

  • Thread starter Thread starter tor
  • Start date Start date
T

tor

Hi
If a column in a listview isn't wide enough to show
the whole content you can place the cursor on that
item and you will get a tooltip?? box where you can
see the whole content of that item.

One example is the Windows Explorer, if the filename
is to long you can place the cursor on that filename
and you will be able to see the whole name.

How is this done?!?!?!


Torfinn
 
You need to set the LVS_EX_LABELTIP style to the listview. There's no way
to set it from .Net, so, what you do is call PostMessage/SendMessage API
with LVM_SETEXTENDEDLISTVIEWSTYLE message on the listview handle.

vJ
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top