What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Set the owner of a popup window

Set the owner of a popup window
Author: Message:
NeoBlackBird
New Member
*


Posts: 2
Joined: Aug 2008
O.P. Set the owner of a popup window
Hello, im french, so scuse me for my bad english.

I want to create a popup window with XML file and set the owner of this window.
In C++ we can do that :
hWindow = CreateDialog(hInstance, (LPCTSTR)IDD_WINID, hParent, (DLGPROC)procWindow);
And the hParent is the handle of the owner of the new window.
How can i do it with XML file or js script ?

Thank you for ur help :)
08-31-2008 01:03 AM
Profile E-Mail PM Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: Set the owner of a popup window
Do you mean to set owner of a Plus! Window?

You could either use MsgPlus.CreateChildWnd(Check Scripting Documentation) or SetParent API.

code:
Interop.Call("User32.dll", "SetParent", ChildWnd.Handle, ParentWnd.Handle); //ParentWnd.Handle is the handle of the Parent window
08-31-2008 04:34 AM
Profile E-Mail PM Web Find Quote Report
NeoBlackBird
New Member
*


Posts: 2
Joined: Aug 2008
O.P. RE: Set the owner of a popup window
Hello,

I have already tryed this.
My child is a popup window, and if i create it with MsgPlus.CreateChildWnd, she don't stay at the top when the parent has the focus.
The SetParent API don't works for a window who has been already created and if the desktop is her first parent.
If i use it, the program crash.
I want to create a child window popup who stay at the top of her parent window ( like windows messagebox ).

Thanks for ur help.
08-31-2008 04:50 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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