mirror of
https://github.com/LorenzCK/OnTopReplica.git
synced 2024-05-21 04:43:55 +12:00
33 lines
845 B
C#
33 lines
845 B
C#
using System.Windows.Forms;
|
|
using OnTopReplica.Native;
|
|
using WindowsFormsAero.Dwm;
|
|
|
|
namespace OnTopReplica.Platforms {
|
|
|
|
class WindowsTen : PlatformSupport {
|
|
|
|
public override bool CheckCompatibility() {
|
|
return true;
|
|
}
|
|
|
|
public override void PreHandleFormInit() {
|
|
WindowsSevenMethods.SetCurrentProcessExplicitAppUserModelID(Program.ApplicationId);
|
|
}
|
|
|
|
public override void PostFormInit(MainForm form) {
|
|
base.PostFormInit(form);
|
|
|
|
form.FormBorderStyle = FormBorderStyle.Sizable;
|
|
form.ControlBox = true;
|
|
form.HideCaption = false;
|
|
}
|
|
|
|
public override void PostHandleFormInit(MainForm form) {
|
|
DwmManager.SetExcludeFromPeek(form, true);
|
|
DwmManager.SetDisallowPeek(form, true);
|
|
}
|
|
|
|
}
|
|
|
|
}
|