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

Pages: (2): « First « 1 [ 2 ] Last »
[Help] EditControl scroll bar
Author: Message:
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: [Help] EditControl scroll bar
to call an API function, use Interop::Call. Since ShowWindow is in User32.dll, use this:

Interop.Call("User32.dll", "ShowWindow", handle, SW_HIDE);
05-01-2007 11:42 PM
Profile PM Find Quote Report
Paril
Junior Member
**

Avatar
Admin of Paril's Projects

Posts: 69
31 / Male / Flag
Joined: Jul 2006
O.P. RE: [Help] EditControl scroll bar
Ooh! That makes more sense.. thanks

EDIT: Perfect, exactly what I need. Thanks.

-Paril

This post was edited on 05-02-2007 at 12:13 AM by Paril.
05-02-2007 12:06 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: [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
Paril
Junior Member
**

Avatar
Admin of Paril's Projects

Posts: 69
31 / Male / Flag
Joined: Jul 2006
O.P. RE: [Help] EditControl scroll bar
That's exactly what I did. :)

-Paril
05-02-2007 11:04 PM
Profile E-Mail PM Web Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« 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