| View previous topic :: View next topic |
| Author |
Message |
steliyan
Joined: 20 Apr 2007 Posts: 31
|
Posted: Sat Nov 10, 2007 2:32 pm Post subject: Disable clicking on column's header |
|
|
| Can this be done without using coordinates? |
|
| Back to top |
|
 |
BoBoĻ Guest
|
Posted: Sat Nov 10, 2007 3:57 pm Post subject: |
|
|
Which columns?  |
|
| Back to top |
|
 |
steliyan
Joined: 20 Apr 2007 Posts: 31
|
Posted: Sun Nov 11, 2007 4:42 pm Post subject: |
|
|
| In foobar2k, does this actually matter? |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6847 Location: Pacific Northwest, US
|
Posted: Sun Nov 11, 2007 5:05 pm Post subject: |
|
|
yes, because if the columns are in an AHK gui, you probably have more control. what is foobar2k? is it a normal listview? is it a custom control? what is the classNN?
I expect overall a no. _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2739 Location: Australia, Qld
|
Posted: Mon Nov 12, 2007 1:45 am Post subject: |
|
|
foobar2k is a music player.
If it uses a normal ListView, you could avoid hard-coding co-ordinates by sending the ListView a LVM_GETHEADER (0x101F) message. The ListView then returns a handle (hwnd) to the header control. You could use ControlGetPos or similar to determine the co-ordinates of the header, and block the click if the mouse falls within said co-ordinates. |
|
| Back to top |
|
 |
steliyan
Joined: 20 Apr 2007 Posts: 31
|
Posted: Tue Nov 13, 2007 4:21 pm Post subject: |
|
|
| ClassNN is SysHeader322. |
|
| Back to top |
|
 |
|