/// <summary> /// Set the WindowStyle /// </summary> /// <param name="interopWindow">InteropWindow</param> /// <param name="windowStyleFlags">WindowStyleFlags</param> /// <returns>IInteropWindow for fluent calls</returns> public static IInteropWindow SetStyle(this IInteropWindow interopWindow, WindowStyleFlags windowStyleFlags) { User32Api.SetWindowLongWrapper(interopWindow.Handle, WindowLongIndex.GWL_STYLE, new IntPtr((uint)windowStyleFlags)); interopWindow.Info = null; return(interopWindow); }
/// <summary> /// Set the Extended WindowStyle /// </summary> /// <param name="interopWindow">InteropWindow</param> /// <param name="extendedWindowStyleFlags">ExtendedWindowStyleFlags</param> public static void SetExtendedStyle(this IInteropWindow interopWindow, ExtendedWindowStyleFlags extendedWindowStyleFlags) { User32Api.SetWindowLongWrapper(interopWindow.Handle, WindowLongIndex.GWL_EXSTYLE, new IntPtr((uint)extendedWindowStyleFlags)); interopWindow.Info = null; }