Beispiel #1
0
        /// <summary>
        ///     Creates a window with the information's stored in this class
        /// </summary>
        /// <returns>
        ///     true on success
        /// </returns>
        private bool CreateWindow()
        {
            Handle = NativeUtils.CreateWindowEx(
                WindowExStyleDx,
                DesktopClass,
                "",
                WindowStyleDx,
                X,
                Y,
                Width,
                Height,
                IntPtr.Zero,
                IntPtr.Zero,
                IntPtr.Zero,
                IntPtr.Zero);

            if (Handle == IntPtr.Zero)
            {
                return(false);
            }

            NativeUtils.SetLayeredWindowAttributes(Handle, 0, 255, LwaAlpha);

            ExtendFrameIntoClient();

            return(true);
        }