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
 
Back
Top