just me wrote: ↑08 Dec 2021, 04:02
Well, you removed this check
Code: Select all
; If HeaderColors contains an appropriate key ...
If HeaderColors.HasKey(HHD) {
which additionally ensures that the sender is a header control.
Apparently tooltip controls also send
NM_CUSTOMDRAW notifications to the list-view. The following seems to solve your 'issue':
Code: Select all
;GET: Sending control's HWND
HHD := NumGet(L + OHWND, "UPtr")
If !(HHD = DllCall("SendMessage", "Ptr", H, "UInt", 0x101F, "Ptr", 0, "Ptr", 0, "UPtr")) ; LVM_GETHEADER
Return 0 ; CDRF_DODEFAULT
Hi
@just me,
thank you very much, this works perfect for me
I have a new issue, a strange thing:
The
GetKeyState("LButton") doesn´t work, if I click in the
ListView.
add after GUI Show:
Label:
Code: Select all
Timer_Check:
MouseGetPos,,, Mouse_Window, H_MouseOver, 2
WinGetClass, WinGet_Class, % "ahk_id " Mouse_Window
If (WinGet_Class = "AutoHotkeyGUI")
{
If GetKeyState("LButton")
{
MsgBox % "Mouseclick"
}
}
Return
This is only, if I use this function...
it looks like the function catches this mouse click.
Thanks again.
Many regards
KruschenZ