What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Disable access to parent chat window when child xml window open

Disable access to parent chat window when child xml window open
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: Disable access to parent chat window when child xml window open
quote:
Originally posted by MSDN
The EnableWindow function enables or disables mouse and keyboard input to the specified window or control. When input is disabled, the window does not receive input such as mouse clicks and key presses. When input is enabled, the window receives all input.

Syntax:
code:
    BOOL EnableWindow(     

        HWND hWnd,
        BOOL bEnable
    );
Parameters:
  • hWnd
    [in] Handle to the window to be enabled or disabled.
  • bEnable
    [in] Specifies whether to enable or disable the window. If this parameter is TRUE, the window is enabled. If the parameter is FALSE, the window is disabled.

So, a good way to do it would be:
code:
Interop.Call("user32.dll", "EnableWindow", Wnd.Handle, false);
where Wnd is a valid ChatWnd object. ;)

As for your closing problem, make sure you call it right:
code:
function OnWndEvent_CtrlClicked(Wnd, Id) {
   if(Id == "BtnOk") {
      Wnd.Close(0); //The number doesn't really matter, but it's more common to just set it to zero
   }
}
Maybe it would be helpful if you post the code snippet where you call the Close function. :)

This post was edited on 12-06-2006 at 03:24 PM by Matti.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
12-06-2006 03:23 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Disable access to parent chat window when child xml window open - by the andyman on 12-05-2006 at 10:27 PM
RE: Disable access to parent chat window when child xml window open - by Matti on 12-06-2006 at 03:23 PM
RE: Disable access to parent chat window when child xml window open - by the andyman on 12-06-2006 at 04:54 PM
RE: RE: Disable access to parent chat window when child xml window open - by Matti on 12-07-2006 at 07:39 PM
RE: Disable access to parent chat window when child xml window open - by the andyman on 12-07-2006 at 06:17 PM
RE: RE: RE: Disable access to parent chat window when child xml window open - by the andyman on 12-07-2006 at 08:53 PM
RE: Disable access to parent chat window when child xml window open - by Spunky on 12-07-2006 at 09:40 PM
RE: RE: Disable access to parent chat window when child xml window open - by the andyman on 12-08-2006 at 05:54 PM
RE: Disable access to parent chat window when child xml window open - by CookieRevised on 12-08-2006 at 07:07 PM
RE: RE: Disable access to parent chat window when child xml window open - by the andyman on 12-09-2006 at 05:22 PM
RE: RE: RE: Disable access to parent chat window when child xml window open - by pollolibredegrasa on 12-09-2006 at 05:30 PM
RE: Disable access to parent chat window when child xml window open - by the andyman on 12-09-2006 at 06:51 PM
RE: RE: RE: Disable access to parent chat window when child xml window open - by the andyman on 12-10-2006 at 07:04 PM
RE: RE: RE: RE: Disable access to parent chat window when child xml window open - by pollolibredegrasa on 12-10-2006 at 07:28 PM
RE: RE: RE: RE: RE: Disable access to parent chat window when child xml window open - by the andyman on 12-10-2006 at 09:51 PM
RE: RE: RE: RE: RE: RE: Disable access to parent chat window when child xml window op - by the andyman on 12-11-2006 at 05:58 PM
RE: Disable access to parent chat window when child xml window open - by the andyman on 12-11-2006 at 06:30 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