OnTopReplica/OnTopReplica/Platforms/WindowsSeven.cs
Lorenz Cuno Klopfenstein 12b80982fd Large code refactoring.
Removed features: glass cannot be disabled and form doesn't recall last position and size. Code simplified.
Fullscreen mode doesn't require separate form.
Fixed clicking with new GlassForm.
Extended click forwarding to right clicks (needs send implementation).
Improved Windows 7 support with platform specific hiding of main form.
Working scaling of form via mouse wheel.
2010-06-30 02:36:21 +02:00

32 lines
853 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using VistaControls.Dwm;
using System.Windows.Forms;
namespace OnTopReplica.Platforms {
class WindowsSeven : WindowsVista {
public override void InitForm(MainForm form) {
DwmManager.SetExludeFromPeek(form, true);
DwmManager.SetDisallowPeek(form, true);
base.InitForm(form);
}
public override void InitApp() {
//Set Application ID
WindowsSevenMethods.SetCurrentProcessExplicitAppUserModelID("OnTopReplica");
}
protected override void InitFormCore(MainForm form) {
//do nothing
}
public override void HideForm(MainForm form) {
form.WindowState = FormWindowState.Minimized;
}
}
}