internal static bool ModifyStyle(IntPtr hWnd, int styleToRemove, int styleToAdd) { int windowLong = NativeMethodsUltimate.GetWindowLong(hWnd, NativeMethodsUltimate.GWL.STYLE); int num = (windowLong & ~styleToRemove) | styleToAdd; if (num == windowLong) { return(false); } NativeMethodsUltimate.SetWindowLong(hWnd, NativeMethodsUltimate.GWL.STYLE, num); return(true); }