Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy
DWM_BLURBEHIND (Structures)
 
.
Summary
This is used by the DwmEnableBlurBehindWindow function to blur behind the Aero in a given region of a window.

C# Definition:

     [StructLayout(LayoutKind.Sequential)]
    struct DWM_BLURBEHIND
    {
        public DWM_BB dwFlags;
        public bool fEnable;
        public IntPtr hRgnBlur;
        public bool fTransitionOnMaximized;

        public DWM_BLURBEHIND(bool enabled)
        {
        fEnable = enabled ? true : false;
        hRgnBlur = IntPtr.Zero;
        fTransitionOnMaximized = false;
        dwFlags = DWM_BB.Enable;
        }

        public System.Drawing.Region Region
        {
        get { return System.Drawing.Region.FromHrgn(hRgnBlur); }
        }

        public bool TransitionOnMaximized
        {
        get { return fTransitionOnMaximized; }
        set
        {
            fTransitionOnMaximized = value ? true : false;
            dwFlags |= DWM_BB.TransitionMaximized;
        }
        }

        public void SetRegion(System.Drawing.Graphics graphics, System.Drawing.Region region)
        {
        hRgnBlur = region.GetHrgn(graphics);
        dwFlags |= DWM_BB.BlurRegion;
        }
    }

VB.NET Definition:

<StructLayout(LayoutKind.Sequential)> _
Structure DWM_BLURBEHIND
    Public dwFlags As DWM_BB
    Public fEnable As Boolean
    Public hRgnBlur As IntPtr
    Public fTransitionOnMaximized As Boolean
End Structure

User-Defined Field Types:

DWM_BB

Notes:

None.

Documentation

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions