What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » TreeView

TreeView
Author: Message:
mathieumg
Full Member
***


Posts: 181
Reputation: 2
35 / Male / Flag
Joined: May 2004
O.P. RE: TreeView
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

:)
07-26-2009 03:50 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
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


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On