I have a problem by detecting column number from item.
I get the row number
for example:
but I can't get column number.
Help me please.
Thanks
I get the row number
for example:
Code:
... LOCAL CursorPos AS POINTAPI LOCAL NotifyMsgPtr AS NMHDR PTR LOCAL HitTestLV AS LV_HITTESTINFO LOCAL LVColumn AS LVCOLUMN .. .. CASE %NM_RCLICK IF @NotifyMsgPtr.idFrom = %IDC_LV1 THEN GetCursorPos CursorPos HitTestLV.pt.x = CursorPos.x HitTestLV.pt.y = CursorPos.y MapWindowPoints %HWND_DESKTOP, @NotifyMsgPtr.hWndFrom, HitTestLV.pt, 1 SendMessage @NotifyMsgPtr.hwndFrom, %LVM_HITTEST, 0, VARPTR(HitTestLV) RowNrFromItem = HitTestLV.iItem 'SendMessage @NotifyMsgPtr.hwndFrom, %LVM_GETCOLUMN, 0, VARPTR(LVColumn) ??? 'ColNrFromItem = LVColumn.iSubItem END IF

Help me please.
Thanks
Comment