What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! General » Keep contacts shown on desktop visible when Aero Peeking

Keep contacts shown on desktop visible when Aero Peeking
Author: Message:
tb87
New Member
*


Posts: 8
Joined: Jul 2009
O.P. RE: Keep contacts shown on desktop visible when Aero Peeking
Here's some working code :

code:
function OnEvent_SigninReady(Email)
{

    var handle = null;
    handle = Messenger.ContactListWndHandle;
     Interop.Call("User32.dll", "EnumChildWindows", handle, Interop.GetCallbackPtr("EnumCallback"), 0);

}

function EnumCallback(hWnd, lParam)
{
    var DWMWA_EXCLUDED_FROM_PEEK = 12;
    var three = 3;
    Interop.Call("dwmapi.dll", "DwmSetWindowAttribute", hWnd, DWMWA_EXCLUDED_FROM_PEEK, three.DataPtr, 4) ;
     return true;
}



However, for some obscure reason EnumChildWindows returns EVERY window visible on the desktop. So each window visible when you sign in will be applied the EXCLUDED_FROM_PEEK attribute. This doesn't bother me as only Outlook is started at the same time WLM starts (on Windows start) but if someone knows what's going on it would be good :)

Alex
08-02-2009 08:28 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Keep contacts shown on desktop visible when Aero Peeking - by tb87 on 07-29-2009 at 04:08 AM
RE: Keep contacts shown on desktop visible when Aero Peeking - by tb87 on 07-31-2009 at 12:57 PM
RE: Keep contacts shown on desktop visible when Aero Peeking - by NanaFreak on 07-31-2009 at 01:28 PM
RE: Keep contacts shown on desktop visible when Aero Peeking - by Eljay on 07-31-2009 at 01:51 PM
RE: Keep contacts shown on desktop visible when Aero Peeking - by tb87 on 07-31-2009 at 10:53 PM
RE: Keep contacts shown on desktop visible when Aero Peeking - by tb87 on 08-02-2009 at 08:28 PM
RE: Keep contacts shown on desktop visible when Aero Peeking - by Eljay on 08-02-2009 at 08:50 PM
RE: Keep contacts shown on desktop visible when Aero Peeking - by tb87 on 08-03-2009 at 10:09 AM
RE: Keep contacts shown on desktop visible when Aero Peeking - by Spunky on 08-03-2009 at 11:04 AM
RE: Keep contacts shown on desktop visible when Aero Peeking - by tb87 on 08-03-2009 at 11:58 AM
RE: Keep contacts shown on desktop visible when Aero Peeking - by tb87 on 08-04-2009 at 01:22 AM
RE: Keep contacts shown on desktop visible when Aero Peeking - by Jeffrey89 on 08-29-2009 at 09:11 AM
RE: Keep contacts shown on desktop visible when Aero Peeking - by tb87 on 08-29-2009 at 03:09 PM
RE: RE: Keep contacts shown on desktop visible when Aero Peeking - by Jeffrey89 on 08-31-2009 at 07:37 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