Shoutbox

[Question] Enabling real window titlebar for Plus windows on runtime - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [Question] Enabling real window titlebar for Plus windows on runtime (/showthread.php?tid=85768)

[Question] Enabling real window titlebar for Plus windows on runtime by mynetx on 09-04-2008 at 08:47 AM

When I create a Plus window with MsgPlus.CreateWnd, it has no real Window Border, just the one drawn by Patchou's design engine. Likewise, it never enables the real Window Minimize, Maximize and/or Close buttons, but Patchou's "fake" buttons matching his Window styles. Now, how can I use the Windows API to enable the real window borders and titlebar/caption, as well as the real Min Max Close buttons? I would be able to take care to hide Patchou's Min Max Close so there wouldn't be a copy of them. I have already read about the SetWindowLongW function, but did not actually succeed in using it to enable/disable the window borders or show/hide the Windows Themed titlebar in Plus Windows created by MsgPlus.CreateWnd. So, how to accomplish this?


RE: [Question] Enabling real window titlebar for Plus windows on runtime by matty on 09-07-2008 at 08:16 PM

http://msdn.microsoft.com/en-us/library/czada357.aspx

You will have to use GetWindowLong and SetWindowLong and remove WS_DLGFRAME and add WS_CAPTION if I am not mistaken.