Skip to content

Commit d5bd694

Browse files
committed
DwmExtendFrameIntoClientArea
1 parent a80b485 commit d5bd694

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SkinFramWorkCore/NonClientTheme.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ private void OnWmNcCreate(ref Message m)
511511
SetWindowTheme(m.HWnd, "Window", "DWmWindow");
512512
if (AllowNcTransparency && !IsMdiChild)
513513
{
514-
MARGINS win10Margins = new MARGINS(8, 8, 31, 8);
514+
MARGINS win10Margins = new MARGINS(BorderWidth, BorderWidth, CaptionHight, BorderWidth);
515515
MARGINS win11Margins = new MARGINS(1, 1, 1, 1);
516516
MARGINS margins = GetMsstylePlatform() == Platform.Win11 ? win11Margins : win10Margins;
517517
DwmExtendFrameIntoClientArea(m.HWnd, ref margins);

TestApp/Form1.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)