Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WM_NOTOFY message question
#1
this code sits as my message3 in #sub DlgProc.  i have 2 questions below...
 
Code:
Copy      Help
;messages3
NMHDR* nh=+lParam
if(nh.idFrom=3) ret DT_Ret
if(nh.idFrom=6) ret DT_Ret
(hDlg scAutomate_Grid_Notify(nh))
#endregion
ret 2

i have 2 Grids and i want to return which of the Grids was edited. i am using LVN_ENDLABELEDIT but dont know how to return the control ID so i can execute a sub script against a specific Grid
 
Code:
Copy      Help
case LVN_ENDLABELEDIT
,out "end edit: item=%i subitem=%i text=%s" di.item.iItem di.item.iSubItem di.item.pszText

another question regarding NOTIFY message. i see this returns the row and col that was clicked but how do I return the text of that row/col?
 
Code:
Copy      Help
,case NM_CLICK ;;when user clicks a row and it does not begin cell edit mode
,NMITEMACTIVATE* na=+nh
,out "row click: %i %i %s" na.iItem na.iSubItem na.lParam
#2
https://www.google.com/search?client=fir...-d&q=NMHDR

Macro Macro3001
Code:
Copy      Help
DlgGrid g.Init(nh.hwndFrom)
str s=g.CellGet(na.iItem na.iSubItem)


Forum Jump:


Users browsing this thread: 1 Guest(s)