Skip to content

Commit 7e1647d

Browse files
Refactoring
1 parent fc9daf7 commit 7e1647d

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

ShortDev.Uwp.FullTrust/ShortDev.Uwp.FullTrust/Activation/CoreWindowActivator.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public static Rect GenerateDefaultWindowPosition()
9797
return new(_bounds.Left, _bounds.Top, _bounds.Right - _bounds.Left, _bounds.Bottom - _bounds.Top);
9898
}
9999

100-
public abstract class WindowStyles
100+
static class WindowStyles
101101
{
102102
public const uint WS_OVERLAPPED = 0x00000000;
103103
public const uint WS_POPUP = 0x80000000;
@@ -139,25 +139,25 @@ public abstract class WindowStyles
139139

140140
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
141141
static extern IntPtr CreateWindowEx(
142-
uint dwExStyle,
143-
string lpClassName,
144-
string lpWindowName,
145-
uint dwStyle,
146-
int x,
147-
int y,
148-
int nWidth,
149-
int nHeight,
150-
IntPtr hWndParent,
151-
IntPtr hMenu,
152-
IntPtr hInstance,
153-
IntPtr lpParam
154-
);
142+
uint dwExStyle,
143+
string lpClassName,
144+
string lpWindowName,
145+
uint dwStyle,
146+
int x,
147+
int y,
148+
int nWidth,
149+
int nHeight,
150+
IntPtr hWndParent,
151+
IntPtr hMenu,
152+
IntPtr hInstance,
153+
IntPtr lpParam
154+
);
155155

156156
[DllImport("user32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
157157
static extern bool DestroyWindow(IntPtr hwnd);
158158

159159
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
160-
public struct WNDCLASSEX
160+
struct WNDCLASSEX
161161
{
162162
[MarshalAs(UnmanagedType.U4)]
163163
public int cbSize;

0 commit comments

Comments
 (0)