AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Disable clicking on column's header

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
steliyan



Joined: 20 Apr 2007
Posts: 31

PostPosted: Sat Nov 10, 2007 2:32 pm    Post subject: Disable clicking on column's header Reply with quote

Can this be done without using coordinates?
Back to top
View user's profile Send private message
BoBoĻ
Guest





PostPosted: Sat Nov 10, 2007 3:57 pm    Post subject: Reply with quote

Which columns? Rolling Eyes
Back to top
steliyan



Joined: 20 Apr 2007
Posts: 31

PostPosted: Sun Nov 11, 2007 4:42 pm    Post subject: Reply with quote

In foobar2k, does this actually matter?
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 6847
Location: Pacific Northwest, US

PostPosted: Sun Nov 11, 2007 5:05 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Lexikos



Joined: 17 Oct 2006
Posts: 2739
Location: Australia, Qld

PostPosted: Mon Nov 12, 2007 1:45 am    Post subject: Reply with quote

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
View user's profile Send private message
steliyan



Joined: 20 Apr 2007
Posts: 31

PostPosted: Tue Nov 13, 2007 4:21 pm    Post subject: Reply with quote

ClassNN is SysHeader322.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group