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

[?] TVN_BEGINLABELEDIT handling
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [?] TVN_BEGINLABELEDIT handling
The pointer to NMTVDISPINFO is the same as the pointer to TV_DISPINFO.

What you need to do is use RtlMoveMemory to copy the lParam memory to another location that is of adequate size.

Javascript code:
function OnWindowEvent_MessageNotification(pPlusWnd, nMessage, wParam, lParam) {
        if (nMessage === WM_NOTIFY) {
                /*
                    NMHDR : 12
                    TVITEM : 40
                */

                var NMTVDISPINFO = Interop.Allocate(52);
                Interop.Call('kernel32', 'RtlMoveMemory', NMTVDISPINFO, lParam, 52);
        }
}


This post was edited on 01-31-2009 at 07:46 PM by matty.
01-31-2009 07:45 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[?] TVN_BEGINLABELEDIT handling - by SmokingCookie on 01-31-2009 at 06:54 PM
RE: [?] TVN_BEGINLABELEDIT handling - by Mnjul on 01-31-2009 at 07:23 PM
RE: [?] TVN_BEGINLABELEDIT handling - by SmokingCookie on 01-31-2009 at 07:29 PM
RE: [?] TVN_BEGINLABELEDIT handling - by matty on 01-31-2009 at 07:45 PM
RE: [?] TVN_BEGINLABELEDIT handling - by SmokingCookie on 01-31-2009 at 07:53 PM
RE: [?] TVN_BEGINLABELEDIT handling - by matty on 01-31-2009 at 09:33 PM
RE: [?] TVN_BEGINLABELEDIT handling - by SmokingCookie on 01-31-2009 at 10:14 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