Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get iid of qm item under mouse pointer (hover)
#1
This get's the iid from the current qm item from the qm-items-list-tree:

Macro test
 
Code:
Copy      Help
int c=id(2202 _hwndqm) ;;outline
TVITEMW m.hItem=SendMessage(c TVM_GETNEXTITEM TVGN_CARET 0)
SendMessage(c TVM_GETITEMW 0 &m)
QMITEM q2
int iid=qmitem(m.lParam 0 q2 1|8)

But is it possible to get the iid of the qm item of which the mouse pointer is hovering over?
When you hover over an qm item it get's underlined, is it possible to get that iid?
#2
Macro Macro3288
Code:
Copy      Help
2
out sub.QmItemIdFromMouse


#sub QmItemIdFromMouse
function#

int c=id(2202 _hwndqm)
TVHITTESTINFO ht
xm ht.pt; ScreenToClient(c &ht.pt)
int hi=SendMessage(c TVM_HITTEST 0 &ht); if(hi=0) ret
TVITEMW t.hItem=hi; t.mask=TVIF_PARAM
if(SendMessage(c TVM_GETITEMW 0 &t)) ret t.lParam
#3
Thank you!


Forum Jump:


Users browsing this thread: 2 Guest(s)