Skip to content

Commit 135e84c

Browse files
authored
Merge pull request #4353 from batzen/dependencyUpdate
Updating some dependencies
2 parents 8d46a8a + e084a8c commit 135e84c

File tree

5 files changed

+13
-16
lines changed

5 files changed

+13
-16
lines changed

src/Directory.Build.Props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222

2323
<!-- Add the references for all projects and targets -->
2424
<ItemGroup>
25-
<PackageReference Include="JetBrains.Annotations" Version="2021.3.0" />
26-
<PackageReference Include="WpfAnalyzers" Version="4.0.1">
25+
<PackageReference Include="JetBrains.Annotations" Version="2022.1.0" />
26+
<PackageReference Include="WpfAnalyzers" Version="4.1.1">
2727
<PrivateAssets>all</PrivateAssets>
2828
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
2929
</PackageReference>

src/MahApps.Metro/Controls/CustomValidationPopup.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -451,17 +451,17 @@ private unsafe void SetTopmostState(bool isTop)
451451
var height = rect.GetHeight();
452452
if (isTop)
453453
{
454-
PInvoke.SetWindowPos(handle, PInvoke.HWND_TOPMOST, left, top, width, height, SWP_TOPMOST);
454+
PInvoke.SetWindowPos(handle, HWND.HWND_TOPMOST, left, top, width, height, SWP_TOPMOST);
455455
}
456456
else
457457
{
458458
// Z-Order would only get refreshed/reflected if clicking the
459459
// the titlebar (as opposed to other parts of the external
460460
// window) unless I first set the popup to HWND_BOTTOM
461461
// then HWND_TOP before HWND_NOTOPMOST
462-
PInvoke.SetWindowPos(handle, PInvoke.HWND_BOTTOM, left, top, width, height, SWP_TOPMOST);
463-
PInvoke.SetWindowPos(handle, PInvoke.HWND_TOP, left, top, width, height, SWP_TOPMOST);
464-
PInvoke.SetWindowPos(handle, PInvoke.HWND_NOTOPMOST, left, top, width, height, SWP_TOPMOST);
462+
PInvoke.SetWindowPos(handle, HWND.HWND_BOTTOM, left, top, width, height, SWP_TOPMOST);
463+
PInvoke.SetWindowPos(handle, HWND.HWND_TOP, left, top, width, height, SWP_TOPMOST);
464+
PInvoke.SetWindowPos(handle, HWND.HWND_NOTOPMOST, left, top, width, height, SWP_TOPMOST);
465465
}
466466

467467
this.appliedTopMost = isTop;

src/MahApps.Metro/Controls/WindowSettings.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ internal WINDOWPLACEMENT ToWINDOWPLACEMENT()
2424
{
2525
length = (uint)Marshal.SizeOf<WINDOWPLACEMENT>(),
2626
showCmd = (SHOW_WINDOW_CMD)this.showCmd,
27-
ptMinPosition = new POINT { x = (int)this.minPosition.X, y = (int)this.minPosition.Y },
28-
ptMaxPosition = new POINT { x = (int)this.maxPosition.X, y = (int)this.maxPosition.Y },
27+
ptMinPosition = new System.Drawing.Point { X = (int)this.minPosition.X, Y = (int)this.minPosition.Y },
28+
ptMaxPosition = new System.Drawing.Point { X = (int)this.maxPosition.X, Y = (int)this.maxPosition.Y },
2929
rcNormalPosition = new RECT { left = (int)this.normalPosition.X, top = (int)this.normalPosition.Y, right = (int)this.normalPosition.Right, bottom = (int)this.normalPosition.Bottom }
3030
};
3131
}
@@ -35,8 +35,8 @@ internal static WindowPlacementSetting FromWINDOWPLACEMENT(WINDOWPLACEMENT windo
3535
return new WindowPlacementSetting
3636
{
3737
showCmd = (uint)windowplacement.showCmd,
38-
minPosition = new Point(windowplacement.ptMinPosition.x, windowplacement.ptMinPosition.y),
39-
maxPosition = new Point(windowplacement.ptMaxPosition.x, windowplacement.ptMaxPosition.y),
38+
minPosition = new Point(windowplacement.ptMinPosition.X, windowplacement.ptMinPosition.Y),
39+
maxPosition = new Point(windowplacement.ptMaxPosition.X, windowplacement.ptMaxPosition.Y),
4040
normalPosition = new Rect(windowplacement.rcNormalPosition.left, windowplacement.rcNormalPosition.top, windowplacement.rcNormalPosition.GetWidth(), windowplacement.rcNormalPosition.GetHeight()),
4141
};
4242
}

src/MahApps.Metro/MahApps.Metro.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
<ItemGroup>
2626
<PackageReference Include="ControlzEx" version="6.0.0-alpha0241" />
2727

28-
<PackageReference Include="XAMLTools.MSBuild" Version="1.0.0-alpha0100" PrivateAssets="all" IncludeAssets="build" />
28+
<PackageReference Include="XAMLTools.MSBuild" Version="1.0.0-alpha0135" PrivateAssets="all" IncludeAssets="build" />
2929

3030
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
3131
<PrivateAssets>all</PrivateAssets>
3232
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
3333
</PackageReference>
34-
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.1.635-beta">
34+
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.2.63-beta">
3535
<PrivateAssets>all</PrivateAssets>
3636
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
3737
</PackageReference>

src/MahApps.Metro/NativeMethods.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ SendMessage
1313
SetWindowPlacement
1414
SetWindowPos
1515

16-
HWND_BOTTOM
17-
HWND_TOP
18-
HWND_NOTOPMOST
19-
HWND_TOPMOST
16+
HWND_*
2017

2118
WM_HOTKEY
2219
WM_NCLBUTTONDOWN

0 commit comments

Comments
 (0)