What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help] EditControl scroll bar

[Help] EditControl scroll bar
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: [Help] EditControl scroll bar
quote:
Originally posted by deAd
to call an API function, use Interop::Call. Since ShowWindow is in User32.dll, use this:

Interop.Call("User32.dll", "ShowWindow", handle, SW_HIDE);
...and since you want to hide a control, you might want to know you can do this:
code:
var Wnd = MsgPlus.CreateWnd("Windows.xml", "MyWindow"); //Just to tell you that Wnd is a PlusWnd object, I think you already created the window before
var handle = Wnd.GetControlHandle("Btn1"); //The magic part: returns the handle of the control, since controls are in fact child windows in the window. ;)
Interop.Call("User32.dll", "ShowWindow", handle, SW_HIDE); //Make sure SW_HIDE = 0

Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
05-02-2007 12:30 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Help] EditControl scroll bar - by Paril on 05-01-2007 at 04:10 PM
RE: [Help] EditControl scroll bar - by Paril on 05-01-2007 at 06:36 PM
RE: [Help] EditControl scroll bar - by vikke on 05-01-2007 at 06:54 PM
RE: [Help] EditControl scroll bar - by Paril on 05-01-2007 at 06:57 PM
RE: [Help] EditControl scroll bar - by vikke on 05-01-2007 at 06:58 PM
RE: [Help] EditControl scroll bar - by Paril on 05-01-2007 at 07:00 PM
RE: [Help] EditControl scroll bar - by matty on 05-01-2007 at 07:24 PM
RE: [Help] EditControl scroll bar - by Paril on 05-01-2007 at 07:25 PM
RE: [Help] EditControl scroll bar - by J-Thread on 05-01-2007 at 09:53 PM
RE: [Help] EditControl scroll bar - by Paril on 05-01-2007 at 11:16 PM
RE: [Help] EditControl scroll bar - by deAd on 05-01-2007 at 11:42 PM
RE: [Help] EditControl scroll bar - by Paril on 05-02-2007 at 12:06 AM
RE: [Help] EditControl scroll bar - by Matti on 05-02-2007 at 12:30 PM
RE: [Help] EditControl scroll bar - by Paril on 05-02-2007 at 11:04 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