I would need some help to get started with the NMTREEVIEW I talked about in my post above, here is what I have:
JScript code:
function OnWndSettingsEvent_MessageNotification(PlusWnd, Message, wParam, lParam) {
switch (Message) {
case WM_NOTIFY:
var NMHDR = Interop.Allocate(12);
Interop.Call('kernel32', 'RtlMoveMemory', NMHDR.DataPtr, lParam, 12);
if (NMHDR.ReadDWORD(0) == PlusWnd.GetControlHandle("TrvSettingGroups")) {
switch(NMHDR.ReadDWORD(8)) {
case TVN_SELCHANGEDW: case TVN_SELCHANGEDA:
//TreeView selection changed
Debug.Trace("TreeView selection changed:");
//Now I want to get the NMTREEVIEW structure and from it, get the the TVITEM both from itemOld and itemNew. Then, I want to get the handle of both these TVITEM structures
break;
}
}
NMHDR.Size = 0;
break;
}
}
Thanks