-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
0.9.9.17
- Loading branch information
Showing
10 changed files
with
4,247 additions
and
4,722 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
using QobuzDownloaderX.Properties; | ||
using System; | ||
using System.Runtime.InteropServices; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Data; | ||
using System.Drawing; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows.Forms; | ||
using System.Reflection; | ||
|
||
namespace QobuzDownloaderX | ||
{ | ||
public partial class AboutForm : Form | ||
{ | ||
public AboutForm() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
public const int WM_NCLBUTTONDOWN = 0xA1; | ||
public const int HT_CAPTION = 0x2; | ||
|
||
[DllImportAttribute("user32.dll")] | ||
public static extern int SendMessage(IntPtr hWnd, int Msg, int wParam, int lParam); | ||
[DllImportAttribute("user32.dll")] | ||
public static extern bool ReleaseCapture(); | ||
|
||
private void AboutForm_Load(object sender, EventArgs e) | ||
{ | ||
// Get and display version number. | ||
verNumLabel2.Text = Assembly.GetExecutingAssembly().GetName().Version.ToString(); | ||
} | ||
|
||
private void exitLabel_Click(object sender, EventArgs e) | ||
{ | ||
this.Close(); | ||
} | ||
|
||
private void panel1_MouseMove(object sender, MouseEventArgs e) | ||
{ | ||
if (e.Button == MouseButtons.Left) | ||
{ | ||
ReleaseCapture(); | ||
SendMessage(Handle, WM_NCLBUTTONDOWN, HT_CAPTION, 0); | ||
} | ||
} | ||
|
||
private void pictureBox1_MouseMove(object sender, MouseEventArgs e) | ||
{ | ||
if (e.Button == MouseButtons.Left) | ||
{ | ||
ReleaseCapture(); | ||
SendMessage(Handle, WM_NCLBUTTONDOWN, HT_CAPTION, 0); | ||
} | ||
} | ||
|
||
private void verNumLabel2_MouseMove(object sender, MouseEventArgs e) | ||
{ | ||
if (e.Button == MouseButtons.Left) | ||
{ | ||
ReleaseCapture(); | ||
SendMessage(Handle, WM_NCLBUTTONDOWN, HT_CAPTION, 0); | ||
} | ||
} | ||
|
||
private void AboutForm_MouseMove(object sender, MouseEventArgs e) | ||
{ | ||
if (e.Button == MouseButtons.Left) | ||
{ | ||
ReleaseCapture(); | ||
SendMessage(Handle, WM_NCLBUTTONDOWN, HT_CAPTION, 0); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.