Jump to content
Tuts 4 You
LCF-AT

Listview questions

Recommended Posts

Teddy Rogers

Shameless plug, check out my PinMe!... https://tuts4you.com/download.php?view.3551

SetWindowLongPtr_(hWnd, #GWL_EXSTYLE, GetWindowLongPtr_(hWnd, #GWL_EXSTYLE) | #WS_EX_LAYERED)
SetLayeredWindowAttributes_(hWnd, #Null, hOpacity, #LWA_ALPHA)

Ted.

  • Like 1

Share this post


Link to post
Share on other sites
LCF-AT

Hey guys,

have a new small question about Listview.So I have created a LV and inside I do store large text parts into which are larger than 256 bytes and of course I cant see the enrire string at once in the LV.So the problem is,if I go with the mouse at one entry then windows does show the string (tooltip or so) so long till I am with the mouse on it similar like in Explorer so you know what I mean right.So it does show the string temporary but also there it dosent show the entire string only 259 byte lenght of this string so there is any limit.My strings are larger and the rest will  not shown in this case.Is there a way to change this limit to a higher value like 1024 etc to let show the whole string?Just temporary of course for my LV only.So I dont wanna create any new or own tooltip and just wanna bypass this limit of 259 bytes anyhow.Is that possible?

Thank you

Share this post


Link to post
Share on other sites
fearless

Think its limited at 260 which is the same as MAX_PATH (259 chars + null terminating char)

 

  • Like 1

Share this post


Link to post
Share on other sites
LCF-AT

Yes I think too fearless.Really no temporary way to increase this limit?

PS: Or is there a way to disable the tooltip info for my  LV?Would also be ok with that solution if it can not show the entire string.

greetz

Share this post


Link to post
Share on other sites
evlncrn8

lemme look up the transparent thing for you, i did it in a pid plugin.. i'll reply in a moment

for the listview try the LV_EX_DOUBLEBUFFER flag in its window creation - it kills a LOT of flicker.. the scroll thing i encountered, too to handle you need to process the messages for scroll, the invalidate rect on the whole thing is also incredibly wasteful

Share this post


Link to post
Share on other sites
LCF-AT

Hi again,

the transparent thing I did already get working after Teds post (also if I dont remember it anymore) but thanks again.The LV_EX_DOUBLEBUFFER is also good and use it for long time now.I also dont have any LV flicker problems anymore so far and also dont use any invalidate rect APIs which makes it extra bad. :) But as I said I dont remember anymore everything so I can just check my own codes to see what I did and what not.Also the LV scroll I dont  need to handle extra anymore so there I dont get any flicker issues too anymore.

PS: Ok,I found out how to disable tooltip in LV.Just needed to remove LVS_EX_LABELTIP for LVM_SETEXTENDEDLISTVIEWSTYLE.Now its gone.

greetz

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×