private void btnGet_Click(object sender, EventArgs e) { if (hack != null) { UNIVERSALHack.SetWindowLong(hack.Handle, UNIVERSALHack.GWL_STYLE, UNIVERSALHack.GetWindowLong(hack.Handle, UNIVERSALHack.GWL_STYLE) & ~UNIVERSALHack.WS_CAPTION); UNIVERSALHack.SetParent(hack.Handle, panelApp.Handle); UNIVERSALHack.MoveWindow(hack.Handle, 0, 0, panelApp.Width, panelApp.Height, true); } }
private void btnHide_Click(object sender, EventArgs e) { if (hack != null) { if (btnHide.Text == "HIDE") { UNIVERSALHack.ShowWindow(hack.Handle, UNIVERSALHack.SW_HIDE); btnHide.Text = "SHOW"; } else { UNIVERSALHack.ShowWindow(hack.Handle, UNIVERSALHack.SW_SHOW); btnHide.Text = "HIDE"; } } }
private void btnOpen_Click(object sender, EventArgs e) { hack = new UNIVERSALHack(@"C:\Users\javier.santos\Desktop\New folder", @"C:\Users\javier.santos\Desktop\New folder\test"); hack.Open(); }