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