What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Bug?] PlusWnd Titlebar

[Bug?] PlusWnd Titlebar
Author: Message:
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
37 / Male / Flag
Joined: Jul 2007
O.P. [Bug?] PlusWnd Titlebar
Please be aware I did read this posting.


My problem is the following:
I'm using Plus windows with no titlebar, using XML like this:
code:
    <Window Id="WndMain" Version="1">
        <Attributes>
            <ShowInTaskbar>true</ShowInTaskbar>
            <Caption>Chatflash.nl Video Search</Caption>
            <SetForeground>true</SetForeground>
        </Attributes>
        <TitleBar>
            <AllowMinimize>false</AllowMinimize>
            <AllowClose>false</AllowClose>
        </TitleBar>
        <Position Width="310" Height="370"/>
<!-- etc, Elements, Controls, /Window -->

The window shows fine, looks like this:

[Image: 8327p21.png]

Then, at some point later, I'm using JS code to change the title displayed in the system taskbar, using JS like this:
code:
Interop.Call("user32", "SetWindowTextW", wndMain.Handle, strSomeNewTitle);

The taskbar button changes accordingly:
[Image: 6q9g9wl.png]

But the displayed window gets corrupt.

[Image: 7xj9a3k.png]

And all this on
Windows XP Service Pack 2 (5.1.2600)
Windows Live Messenger 8.5.1018
Messenger Plus! Live 4.50.0.312.

Any reason, solution in sight?
Thanks for your help,
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
01-08-2008 08:18 AM
Profile E-Mail PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: [Bug?] PlusWnd Titlebar
How is this a bug? It's set the window text... You couldn't have been expecting the title to change... It's an image isn't it?
<Eljay> "Problems encountered: shit blew up" :zippy:
01-08-2008 05:02 PM
Profile PM Find Quote Report
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
37 / Male / Flag
Joined: Jul 2007
O.P. RE: [Bug?] PlusWnd Titlebar
How then can I change the taskbar button text without showing the Plus! titlebar in the window itself?
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
01-08-2008 05:05 PM
Profile E-Mail PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: [Bug?] PlusWnd Titlebar
Searched Google and I'm not 100% sure it's possible... Unless theres a message you can send to tell Windows not to paint the title
<Eljay> "Problems encountered: shit blew up" :zippy:
01-08-2008 05:14 PM
Profile PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: [Bug?] PlusWnd Titlebar
This is a known issue with Plus! windows. I experienced it too when I was fiddling with my translation system, but it seems like Plus! Live adds the title bar itself.

Well, I'll use this thread then for a suggestion to Patchou:
Make the windows so that when a SetWindowText or WM_SETTEXT is received, check if the original XML defined a title bar so Plus! will only change title bars instead of adding them. It would be much more interesting for us, script developers! ;)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
01-08-2008 05:15 PM
Profile E-Mail PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: [Bug?] PlusWnd Titlebar
quote:
Originally posted by Mattike
This is a known issue with Plus! windows. I experienced it too when I was fiddling with my translation system, but it seems like Plus! Live adds the title bar itself.


I'm fairly confident that this is to do with the function itself and not Plus!

the function seems to automatically update the window title, thus making it shown
<Eljay> "Problems encountered: shit blew up" :zippy:
01-08-2008 05:20 PM
Profile PM Find Quote Report
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
37 / Male / Flag
Joined: Jul 2007
O.P. RE: [Bug?] PlusWnd Titlebar
Did anybody find out something on how to change the window title, for example via SetWindowTextW, but without causing Plus! to make the window titlebar visible (because there wasn’t one in the XML)?
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
02-07-2010 08:05 AM
Profile E-Mail PM Web Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: [Bug?] PlusWnd Titlebar
Yes, Patchou implemented a work-around to set the window title without adding a Plus! title bar. When sending WM_SETTEXT, pass 1 as wParam. This parameter has no meaning for the Windows API, but when sent to a Plus! window, it'll prevent the title bar from being added.
js code:
Interop.Call("user32", "SendMessageW", pPlusWnd.Handle, WM_SETTEXT, 1, "New Window Title");
This has been around since Plus! 4.50.317, so normally you shouldn't have to worry too much about backwards-compatibility.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
02-07-2010 10:33 AM
Profile E-Mail PM Web Find Quote Report
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
37 / Male / Flag
Joined: Jul 2007
O.P. RE: [Bug?] PlusWnd Titlebar
Thanks Matti; was this documented somewhere already?
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
02-07-2010 11:17 AM
Profile E-Mail PM Web 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