lvsExtendedStyle values?
Moderators: fgagnon, nikos, Site Mods
-
jimspoon
- Bronze Member

- Posts: 161
- Joined: 2002 Aug 22, 00:02
lvsExtendedStyle values?
Anybody have the values for lvsExtendedStyle? It controls quite a few things like tooltips, gridlines, etc. as indicated in alpha.txt. Nikos said in a post here that the values can be found in commctrl.h but I don't have that file on my system.
-
nikos
- Site Admin

- Posts: 16344
- Joined: 2002 Feb 07, 15:57
- Location: UK
unfortunately you'd have to be a developer and have this file as part of the C++ SDK
here's the description (but no actual values):
http://msdn.microsoft.com/library/defau ... styles.asp
anyway, as i recommend in alpha.txt, you can use 2xExplorer to set whatever values you want (View | Options | Usability), quit 2x and read the value from its lvsExtendedStyle in the registry; then you use the same value for x2 for the same effect
if that doesn't help then i'll give you all the numbers
but soon there's going to be GUI to set all these things directly in x2
here's the description (but no actual values):
http://msdn.microsoft.com/library/defau ... styles.asp
anyway, as i recommend in alpha.txt, you can use 2xExplorer to set whatever values you want (View | Options | Usability), quit 2x and read the value from its lvsExtendedStyle in the registry; then you use the same value for x2 for the same effect
if that doesn't help then i'll give you all the numbers
but soon there's going to be GUI to set all these things directly in x2
-
fgagnon
- Site Admin

- Posts: 3737
- Joined: 2003 Sep 08, 19:56
- Location: Springfield
Plus ... vserghi's the expert on this for x2 {besides nikos}.
Here's a summary of his from another forum:
Here's a summary of his from another forum:
Here is a conversion to decimal, the first number is decimal the second hex;
GRIDLINES: 1dec, 1hex
TRACKSELECT: 8dec, 8hex
HEADERDRAGDROP: 16dec, 10hex
FULLROWSELECT: 32dec, 20hex
ONECLICKACTIVATE: 64dec, 40hex
TWOCLICKACTIVATE: 128dec, 80hex
INFOTIP: 1024dec, 400hex
UNDERLINEHOT: 2048dec, 800hex
UNDERLINECOLD: 4096dec, 1000hex
LABELTIP: 16384dec, 4000hex
Choose your options and sum up the values asscociated with that option e.g.
Lets say you want GRIDLINES, FULLROWSELECT, INFOTIP and LABELTIP, then add togther;
in dec: 1 + 32 + 1024 + 16384 = 17441
in hex: 1 + 20 + 400 + 4000 = 4421
or INFOTIP and LABELTIP;
in dec: 1024 + 16384 = 17408
in hex: 400 + 4000 = 4400
Copy the number into "lvsExtendedStyle", making sure the number convention matches your method of calculation!!
You can also decode what you have already in the registry by reversing what I did above.