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
Official MessengerPlus! Live French Translator
Official StuffPlug 3 French Translator
TreeView - by mathieumg on 07-19-2009 at 11:19 PM RE: TreeView - by matty on 07-20-2009 at 12:38 PM RE: TreeView - by mathieumg on 07-20-2009 at 05:21 PM RE: TreeView - by mathieumg on 07-21-2009 at 02:52 AM RE: TreeView - by mathieumg on 07-26-2009 at 01:48 PM RE: TreeView - by matty on 07-26-2009 at 02:36 PM RE: TreeView - by mathieumg on 07-26-2009 at 03:50 PM RE: TreeView - by matty on 07-26-2009 at 04:25 PM RE: TreeView - by mathieumg on 07-26-2009 at 09:27 PM RE: TreeView - by matty on 07-27-2009 at 12:31 PM