Created
March 26, 2011 08:12
-
-
Save painejake/888125 to your computer and use it in GitHub Desktop.
Windows Aero class example
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
using System.Runtime.InteropServices; | |
/// <summary> | |
/// Code for Windows Aero effects on the Window | |
/// </summary> | |
[StructLayout(LayoutKind.Sequential)] | |
public struct WindowsAero | |
{ | |
public int cxLeftWidth; | |
public int cxRightWidth; | |
public int cyTopHeight; | |
public int cyButtomheight; | |
} | |
[DllImport("dwmapi.dll", PreserveSig = false)] | |
public static extern int DwmExtendFrameIntoClientArea(IntPtr hWnd, ref WindowsAero pMarinset); | |
[DllImport("dwmapi.dll", PreserveSig = false)] | |
public static extern bool DwmIsCompositionEnabled(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment