Jump to content

Gridlines in ListView


Rodger
 Share

Recommended Posts

Hello,

I have coded gridlines in my listview like this:

_GUICtrlListView_SetExtendedListViewStyle ($hSummeryListView, BitOR($LVS_EX_GRIDLINES, $LVS_EX_FULLROWSELECT, $LVS_EX_SUBITEMIMAGES))

The gridlines are shown in the listview but the moment you start scrolling in the listview, the gridlines disappear?!

Is there a way to get them back, can the gridlines be "repainted"

Thanks,

Rodger

Link to comment
Share on other sites

@rodger

try this example and see if it works for you.

$ListView1 = GUICtrlCreateListView("Files |Date |Size", 10, 45, 957, 478,-1, BitOR($LVS_SHOWSELALWAYS,$LVS_REPORT)) 
GUICtrlSendMsg($listview1, $LVM_SETEXTENDEDLISTVIEWSTYLE, $LVS_EX_HEADERDRAGDROP, $LVS_EX_HEADERDRAGDROP)
GUICtrlSendMsg($listview1, $LVM_SETEXTENDEDLISTVIEWSTYLE, $LVS_EX_FULLROWSELECT, $LVS_EX_FULLROWSELECT)
GUICtrlSendMsg($listview1, $LVM_SETEXTENDEDLISTVIEWSTYLE, $LVS_EX_TRACKSELECT, $LVS_EX_TRACKSELECT)
GUICtrlSetImage($ListView1, "compstui.dll", -15)
GUICtrlSetResizing ($ListView1,$GUI_DOCKAUTO)

regards,

ptrex

Link to comment
Share on other sites

@rodger

try this example and see if it works for you.

$ListView1 = GUICtrlCreateListView("Files |Date |Size", 10, 45, 957, 478,-1, BitOR($LVS_SHOWSELALWAYS,$LVS_REPORT)) 
GUICtrlSendMsg($listview1, $LVM_SETEXTENDEDLISTVIEWSTYLE, $LVS_EX_HEADERDRAGDROP, $LVS_EX_HEADERDRAGDROP)
GUICtrlSendMsg($listview1, $LVM_SETEXTENDEDLISTVIEWSTYLE, $LVS_EX_FULLROWSELECT, $LVS_EX_FULLROWSELECT)
GUICtrlSendMsg($listview1, $LVM_SETEXTENDEDLISTVIEWSTYLE, $LVS_EX_TRACKSELECT, $LVS_EX_TRACKSELECT)
GUICtrlSetImage($ListView1, "compstui.dll", -15)
GUICtrlSetResizing ($ListView1,$GUI_DOCKAUTO)

regards,

ptrex

Ok Thanks, I will try ....

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...