What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Change Window's Title bar in script

Change Window's Title bar in script
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Change Window's Title bar in script
Do you mean changing the titlebar caption of the window?

code:
function SetWindowText(hWnd, sText){
    Interop.Call('user32', 'SetWindowTextW', hWnd, sText);
}

Usage would be something like this
code:
var pChatWnd = MsgPlus.CreateWnd('xmlfile', 'WindowId')
SetWindowText(pChatWnd.Handle, 'new text');

Should work, like most scripts I post I can't test it as I am at work not home.
06-30-2006 04:54 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Change Window's Title bar in script - by J-Thread on 06-30-2006 at 09:36 AM
RE: Change Window's Title bar in script - by matty on 06-30-2006 at 04:54 PM
RE: Change Window's Title bar in script - by J-Thread on 06-30-2006 at 06:25 PM
RE: Change Window's Title bar in script - by deAd on 06-30-2006 at 06:43 PM
RE: Change Window's Title bar in script - by J-Thread on 06-30-2006 at 06:46 PM
RE: Change Window's Title bar in script - by deAd on 06-30-2006 at 08:03 PM
RE: Change Window's Title bar in script - by RaceProUK on 06-30-2006 at 08:40 PM
RE: Change Window's Title bar in script - by J-Thread on 06-30-2006 at 08:59 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