SevenSoftware.Windows.AeroGlass.WndProc C# (CSharp) Method

WndProc() static private method

An application-defined function that processes messages sent to a window.
static private WndProc ( IntPtr handle, int msg, IntPtr parameter, IntPtr parameter2, bool &handled ) : IntPtr
handle System.IntPtr A handle to the window.
msg int The message to send.
parameter System.IntPtr Additional message information. The contents of this parameter depend on the value of the msg parameter.
parameter2 System.IntPtr Another additional message information. The contents of this parameter depend on the value of the msg parameter.
handled bool If set to True the event was handled.
return System.IntPtr
        static IntPtr WndProc(IntPtr handle, int msg, IntPtr parameter, IntPtr parameter2, ref bool handled)
        {
            if (msg == 0x031E)
            {
                if (CompositionChanged != null)
                {
                    CompositionChanged.Invoke(null, new CompositionChangedEventArgs(IsGlassEnabled));
                }

                handled = true;
            }

            return IntPtr.Zero;
        }