Skip to content

Commit 532b5dc

Browse files
committed
Replace flags with CSWin32
1 parent b96c7b1 commit 532b5dc

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,21 +78,19 @@ public MainWindow()
7878
InitializeComponent();
7979
}
8080

81-
private const int WM_ENTERSIZEMOVE = 0x0231;
82-
private const int WM_EXITSIZEMOVE = 0x0232;
8381
private int _initialWidth;
8482
private int _initialHeight;
8583

8684
private IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
8785
{
88-
if (msg == WM_ENTERSIZEMOVE)
86+
if (msg == PInvoke.WM_ENTERSIZEMOVE)
8987
{
9088
_initialWidth = (int)Width;
9189
_initialHeight = (int)Height;
9290
handled = true;
9391
}
9492

95-
if (msg == WM_EXITSIZEMOVE)
93+
if (msg == PInvoke.WM_EXITSIZEMOVE)
9694
{
9795
if (_initialHeight != (int)Height)
9896
{

Flow.Launcher/NativeMethods.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,7 @@ GetShellWindow
1111
GetWindowRect
1212
GetClassName
1313
FindWindowEx
14-
WINDOW_STYLE
14+
WINDOW_STYLE
15+
16+
WM_ENTERSIZEMOVE
17+
WM_EXITSIZEMOVE

0 commit comments

Comments
 (0)