Hai all,
i am strugling to apply the grid lines to the MS Common Controls 5 List View.
I have attached the project with the comctl32.ocx i have.
Please help !
Printable View
Hai all,
i am strugling to apply the grid lines to the MS Common Controls 5 List View.
I have attached the project with the comctl32.ocx i have.
Please help !
Version 5 doesn't expose that property at all so if you need it then use v6 of common controls.
No rihno, i am trying to set gridlines using SetWindowLong() to set the LVS_EX_GRIDLINES style. My Project shows it.Quote:
Originally Posted by RhinoBull
I really really need this since version 6 does not support XP Style. :(
OK, you will need to use SendMessage instead: Display ListView Grid Lines
Thanks RhinoBull. actually i was redirected to this page few hours a go when i search google and put there sendMessage code. at that time it did not make an effect except a thik border was added to the upper part of the header area. so i removed that code. let me try it again.Quote:
Originally Posted by RhinoBull
Oh Rihno, It is working now !!! It is working Now!!!. Let me come back in a second,
Ok rihno, actually, when i tried earlier i did not use that state thing. what is that state thing is? what is the lparam look for here?
Ok it seem the lparam is the ON/Off status of the grid lines.
Thanks rihno for bring me back this code.
bye
Al I could do was shaking my head... :ehh:
Anyway, "state" is a long integer that is used in that sample to get current state of checkbox because it's a demonstration of how to toggle the Gridlines by checking/unchecking the Checkbox...
You don't need that - replace the state with 1 and you'll be allright.
Righno, the funny think is, if i replaced it with 1, it does not work. this is what happend to me on my first try. ok. i ll post the project with set to 1. have a try . let me upload.Quote:
Originally Posted by RhinoBull
i have attached.
I don't know what you do but here is what you need:
Make sure you have all the declarations in place.Code:Call SendMessage(ListView1.hwnd, _
LVM_SETEXTENDEDLISTVIEWSTYLE, _
LVS_EX_GRIDLINES, ByVal 1)
OK. I Messed up with byVal & state thing. sorry. now allright.