Listview : How to remove header pinline ?

Get help with using AutoHotkey and its commands and hotkeys
User avatar
Klark92
Posts: 161
Joined: 18 Jan 2015, 19:33

Listview : How to remove header pinline ?

22 Mar 2017, 17:32

Image

When listview is themed, that line appears... Does anybody know, how to remove it ?

Example:

Code: Select all

Gui, Add, ListView, x10 y10 w145 h240 hwndHLV Background000000 cWhite, Col1
DllCall("UxTheme.dll\SetWindowTheme", "Ptr", HLV, "WStr", "Explorer", "Ptr", 0)
LV_Add("", "hi from first row")
LV_Add("", "hi from second row")
LV_ModifyCol(1, 135)
Gui, Show, Center w165 h260, Line Test
Return

GuiClose:
ExitApp
Last edited by Klark92 on 22 Mar 2017, 18:56, edited 1 time in total.
Smart Kombo 1.0 | One of the best Knight Online's key combo program...
4GForce
Posts: 553
Joined: 25 Jan 2017, 03:18
GitHub: 4GForce

Re: Listview : How to remove header pinline ?

22 Mar 2017, 18:14

Random guess without seeing the code but it looks like a column separator ... you wouldn't have a second column that is empty would you ?
User avatar
Klark92
Posts: 161
Joined: 18 Jan 2015, 19:33

Re: Listview : How to remove header pinline ?

22 Mar 2017, 18:56

yes there is only one column. sorry about that but it appears with that code :

Code: Select all

Gui, Add, ListView, x10 y10 w145 h240 hwndHLV Background000000 cWhite, Col1
DllCall("UxTheme.dll\SetWindowTheme", "Ptr", HLV, "WStr", "Explorer", "Ptr", 0)
LV_Add("", "hi from first row")
LV_Add("", "hi from second row")
LV_ModifyCol(1, 135)
Gui, Show, Center w165 h260, Line Test
Return

GuiClose:
ExitApp
Smart Kombo 1.0 | One of the best Knight Online's key combo program...
4GForce
Posts: 553
Joined: 25 Jan 2017, 03:18
GitHub: 4GForce

Re: Listview : How to remove header pinline ?

22 Mar 2017, 23:44

Klark92 wrote:yes there is only one column. sorry about that but it appears with that code
Well it is a column separator ... kind of ... allows you to resize the column even tho there is just one. Weird behavior.
Simple solution would be to add 0x2000 ( LVS_NOSCROLL ) to the listview options and make the column a bit larger than the listview ... but that would remove vertical scroll bar as well.
User avatar
Klark92
Posts: 161
Joined: 18 Jan 2015, 19:33

Re: Listview : How to remove header pinline ?

23 Mar 2017, 05:01

its not a good solution because the themed selection box is trimming when I increase the column width
Smart Kombo 1.0 | One of the best Knight Online's key combo program...
User avatar
jNizM
Posts: 2420
Joined: 30 Sep 2013, 01:33
GitHub: jNizM
Contact:

Re: Listview : How to remove header pinline ?

23 Mar 2017, 05:47

[AHK] 1.1.30.03 x64 Unicode | [WIN] 10 Pro (Version 1903) x64 | [GitHub] Profile
Donations are appreciated if I could help you
User avatar
Klark92
Posts: 161
Joined: 18 Jan 2015, 19:33

Re: Listview : How to remove header pinline ?

23 Mar 2017, 05:51

Sorry, that Ptr cannot be '1' because it's closing uxtheme effect ... it didnt worked

OK :mrgreen:
Smart Kombo 1.0 | One of the best Knight Online's key combo program...
User avatar
jNizM
Posts: 2420
Joined: 30 Sep 2013, 01:33
GitHub: jNizM
Contact:

Re: Listview : How to remove header pinline ?

23 Mar 2017, 06:19

[AHK] 1.1.30.03 x64 Unicode | [WIN] 10 Pro (Version 1903) x64 | [GitHub] Profile
Donations are appreciated if I could help you

Return to “Ask For Help”

Who is online

Users browsing this forum: aifritz, Odlanir, Portwolf, Rohwedder and 163 guests