What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » WM_NOTIFY Help - (Noobs stay away! haha)

WM_NOTIFY Help - (Noobs stay away! haha)
Author: Message:
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: WM_NOTIFY Help - (Noobs stay away! haha)
This is easy actually, I asked the same question a while back:

code:
var pNmhdr = Interop.Allocate(12); // if this is the wrong size sorry
Interop.Call('Kernel32.dll', 'RtlMoveMemory', pNmhdr.DataPtr, lParam, pNmhdr.Size);
// do stuff with pNmhdr

If you want to modify the structure, just call RtlMoveMemory again with the opposite parameters after you're all done modifying it:

code:
Interop.Call('Kernel32.dll', 'RtlMoveMemory', lParam, pNmhdr.DataPtr, pNmhdr.Size);

PS: How are you subclassing the control? Dll? or are you just processing the notifications it sends to the parent window?

This post was edited on 03-08-2007 at 10:48 PM by deAd.
03-08-2007 10:45 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
WM_NOTIFY Help - (Noobs stay away! haha) - by matty on 03-08-2007 at 10:24 PM
RE: WM_NOTIFY Help - (Noobs stay away! haha) - by effection on 03-08-2007 at 10:34 PM
RE: WM_NOTIFY Help - (Noobs stay away! haha) - by deAd on 03-08-2007 at 10:45 PM
RE: WM_NOTIFY Help - (Noobs stay away! haha) - by matty on 03-08-2007 at 10:50 PM
RE: RE: WM_NOTIFY Help - (Noobs stay away! haha) - by deAd on 03-08-2007 at 10:53 PM
RE: WM_NOTIFY Help - (Noobs stay away! haha) - by CookieRevised on 03-09-2007 at 12:55 AM
RE: WM_NOTIFY Help - (Noobs stay away! haha) - by Patchou on 03-09-2007 at 06:29 AM
RE: RE: WM_NOTIFY Help - (Noobs stay away! haha) - by CookieRevised on 03-09-2007 at 10:45 AM


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