Skip to content

Commit

Permalink
Removed unneeded buttons, windowgrab code
Browse files Browse the repository at this point in the history
  • Loading branch information
tlandino0 committed Nov 20, 2017
1 parent 6a118d4 commit fd86b24
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 56 deletions.
33 changes: 0 additions & 33 deletions HexDeploy/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 0 additions & 23 deletions HexDeploy/Form1.cs
Expand Up @@ -18,29 +18,6 @@ private void Form1_Load(object sender, EventArgs e)
{

}
protected override void WndProc(ref Message m)
{
//Makes a grabbable window. Removing if intrusive to user experience.
base.WndProc(ref m);
if (m.Msg == WM_NCHITTEST)
m.Result = (IntPtr)(HT_CAPTION);
}
//constants
private const int WM_NCHITTEST = 0x84;
private const int HT_CLIENT = 0x1;
private const int HT_CAPTION = 0x2;

private void button1_Click(object sender, EventArgs e)
{
//closes the form, although it's one of the worst ways to do it.
this.Close();
}

private void button2_Click(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Minimized;
}

private void button3_Click(object sender, EventArgs e)
{
//Plans.jpeg
Expand Down

0 comments on commit fd86b24

Please sign in to comment.