felipEx
Scripting Contest Winner
Posts: 378 Reputation: 24
35 / /
Joined: Jun 2006
|
RE: [?] API Function for changing window taskbar title.
something like this ?
code: function OnEvent_ChatWndCreated(ChatWnd){
var Wstyle = 0 /* WS_OVERLAPPED */ | 0x2000000 /* WS_CLIPCHILDREN */ | 0x4000000 /* WS_CLIPSIBLINGS */ ;
Wstyle = Wstyle | 0x40000;
Interop.Call("user32", "SetMenu", ChatWnd.Handle, 0);
//Interop.Call("user32", "SetWindowTextW", ChatWnd.Handle, "new title...");
Interop.Call("user32", "SetWindowLongW", ChatWnd.Handle, -16 /* GWL_STYLE */, Wstyle);
Interop.Call("user32", "ShowWindow", ChatWnd.Handle, 1);
}
This post was edited on 09-07-2007 at 06:57 AM by felipEx.
|
|