diff --git a/SpineViewer/PetForm.Designer.cs b/SpineViewer/PetForm.Designer.cs new file mode 100644 index 0000000..22d391c --- /dev/null +++ b/SpineViewer/PetForm.Designer.cs @@ -0,0 +1,50 @@ +namespace SpineViewer +{ + partial class PetForm + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + SuspendLayout(); + // + // PetForm + // + AutoScaleMode = AutoScaleMode.None; + ClientSize = new Size(490, 456); + ControlBox = false; + MaximizeBox = false; + MinimizeBox = false; + Name = "PetForm"; + ShowIcon = false; + ShowInTaskbar = false; + StartPosition = FormStartPosition.Manual; + Text = "PetForm"; + ResumeLayout(false); + } + + #endregion + } +} \ No newline at end of file diff --git a/SpineViewer/PetForm.cs b/SpineViewer/PetForm.cs new file mode 100644 index 0000000..b5ed123 --- /dev/null +++ b/SpineViewer/PetForm.cs @@ -0,0 +1,48 @@ +using System; +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; + +namespace SpineViewer +{ + public partial class PetForm: Form + { + public PetForm() + { + InitializeComponent(); + } + + protected override CreateParams CreateParams + { + get + { + //var style = Win32.GetWindowLong(hWnd, Win32.GWL_STYLE) | Win32.WS_POPUP; + //var exStyle = Win32.GetWindowLong(hWnd, Win32.GWL_EXSTYLE) | Win32.WS_EX_LAYERED | Win32.WS_EX_TOOLWINDOW | Win32.WS_EX_TOPMOST; + //Win32.SetWindowLong(hWnd, Win32.GWL_STYLE, style); + //Win32.SetWindowLong(hWnd, Win32.GWL_EXSTYLE, exStyle); + //Win32.SetLayeredWindowAttributes(hWnd, crKey, 255, Win32.LWA_COLORKEY | Win32.LWA_ALPHA); + //Win32.SetWindowPos(hWnd, Win32.HWND_TOPMOST, 0, 0, 0, 0, Win32.SWP_NOMOVE | Win32.SWP_NOSIZE); + var cp = base.CreateParams; + cp.ExStyle = Win32.WS_EX_LAYERED | Win32.WS_EX_TOPMOST; + cp.Style = Win32.WS_POPUP; + //cp.ExStyle |= Win32.WS_EX_LAYERED | Win32.WS_EX_TOOLWINDOW | Win32.WS_EX_TOPMOST; + return cp; + } + } + + protected override void OnPaint(PaintEventArgs e) + { + ; + } + + protected override void OnPaintBackground(PaintEventArgs e) + { + ; + } + } +} diff --git a/SpineViewer/PetForm.resx b/SpineViewer/PetForm.resx new file mode 100644 index 0000000..8b2ff64 --- /dev/null +++ b/SpineViewer/PetForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file