What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Patchou: Script Windows have an invisible titlebar/border

Patchou: Script Windows have an invisible titlebar/border
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
O.P. RE: Patchou: Script Windows have an invisible titlebar/border
The hidden title bar and borders causes extra space to show up. I cannot move the window up the screen because it is forced down as a default window behavior to make sure there is a portion of the titlebar still showing.

[Image: attachment.php?pid=879901]

Using this code

code:
Interop.Call('user32', 'SetWindowLongW', objWindows['SelectArea'].Handle, (-16) /* GWL_STYLE */, Interop.Call('user32', 'GetWindowLongW', objWindows['SelectArea'].Handle, (-16) /* GWL_STYLE */) & ~ 0xC00000 /* WS_CAPTION */ & ~ 0x400000 /* WS_BOARDER */);

We can remove the title bar and the borders however it doesn't act the same as the overlay window doesn't reach the corners of the screen. So therefore dragging at cursor position 0,0 is dragging on the desktop.

Here is the XML for the window.

code:
<?xml version="1.0" encoding="UTF-16"?>
<Interfaces xmlns="urn:msgplus:interface" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:msgplus:interface PlusInterface.xsd">
    <Window Id="SelectArea" Version="1">
        <Attributes>
            <ShowInTaskbar>False</ShowInTaskbar>
            <TopMost>True</TopMost>
            <NoActivate>True</NoActivate>
            <LockOnClick>False</LockOnClick>
        </Attributes>
        <Titlebar>
            <AllowMinimize>False</AllowMinimize>
            <AllowMaximize>False</AllowMaximize>
            <AllowClose>False</AllowClose>
        </Titlebar>
        <WindowTmpl>
            <Corners Shape="Rectangle">
                <RoundSize>0</RoundSize>
            </Corners>
        </WindowTmpl>
        <Position Width="400" Height="300" />
    </Window>
</Interfaces>

.jpg File Attachment: screenshot_00.jpg (59.6 KB)
This file has been downloaded 549 time(s).

This post was edited on 01-04-2008 at 03:56 PM by matty.
01-04-2008 03:53 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Patchou: Script Windows have an invisible titlebar/border - by matty on 01-03-2008 at 02:38 PM
RE: Patchou: Script Windows have an invisible titlebar/border - by deAd on 01-03-2008 at 04:03 PM
RE: Patchou: Script Windows have an invisible titlebar/border - by matty on 01-04-2008 at 02:23 PM
RE: Patchou: Script Windows have an invisible titlebar/border - by Patchou on 01-04-2008 at 03:31 PM
RE: Patchou: Script Windows have an invisible titlebar/border - by matty on 01-04-2008 at 03:53 PM
RE: Patchou: Script Windows have an invisible titlebar/border - by Patchou on 01-04-2008 at 07:40 PM
RE: Patchou: Script Windows have an invisible titlebar/border - by matty on 01-04-2008 at 07:53 PM
RE: Patchou: Script Windows have an invisible titlebar/border - by Spunky on 01-04-2008 at 08:45 PM
RE: Patchou: Script Windows have an invisible titlebar/border - by matty on 01-04-2008 at 09:12 PM
RE: Patchou: Script Windows have an invisible titlebar/border - by Matti on 01-05-2008 at 11:23 AM
RE: Patchou: Script Windows have an invisible titlebar/border - by Patchou on 01-05-2008 at 05:51 PM
RE: Patchou: Script Windows have an invisible titlebar/border - by matty on 01-06-2008 at 03:14 PM
RE: Patchou: Script Windows have an invisible titlebar/border - by matty on 01-11-2008 at 01:09 PM
RE: Patchou: Script Windows have an invisible titlebar/border - by Patchou on 01-11-2008 at 03:50 PM
RE: Patchou: Script Windows have an invisible titlebar/border - by matty on 01-14-2008 at 09:39 PM
RE: Patchou: Script Windows have an invisible titlebar/border - by Matti on 01-15-2008 at 07:27 PM
RE: Patchou: Script Windows have an invisible titlebar/border - by matty on 01-16-2008 at 01:20 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