ZooFlow: Remove ClassWin32, replace with Modules.Windows
This commit is contained in:
@@ -104,9 +104,8 @@ Public Class frmFlowForm
|
||||
|
||||
Try
|
||||
' Marshal the LPARAM value which is a WINDOWPOS struct
|
||||
Dim NewPosition As New ClassWin32.WINDOWPOS
|
||||
NewPosition = CType(Marshal.PtrToStructure(
|
||||
LParam, GetType(ClassWin32.WINDOWPOS)), ClassWin32.WINDOWPOS)
|
||||
Dim NewPosition As New NativeMethods.WINDOWPOS
|
||||
NewPosition = CType(Marshal.PtrToStructure(LParam, GetType(NativeMethods.WINDOWPOS)), NativeMethods.WINDOWPOS)
|
||||
|
||||
If NewPosition.y = 0 OrElse NewPosition.x = 0 Then
|
||||
Return ' Nothing to do!
|
||||
@@ -372,8 +371,8 @@ Public Class frmFlowForm
|
||||
|
||||
Private Sub frmFlowForm_MouseMove(ByVal sender As Object, ByVal e As MouseEventArgs) Handles Me.MouseMove, PictureBoxDragDrop.MouseMove
|
||||
If e.Button = MouseButtons.Left Then
|
||||
ClassWin32.ReleaseCapture()
|
||||
ClassWin32.SendMessage(Handle, ClassWin32.WM_NCLBUTTONDOWN, ClassWin32.HTCAPTION, 0)
|
||||
NativeMethods.ReleaseCapture()
|
||||
NativeMethods.SendMessage(Handle, NativeMethods.WM_NCLBUTTONDOWN, NativeMethods.HTCAPTION, 0)
|
||||
End If
|
||||
End Sub
|
||||
|
||||
|
||||
Reference in New Issue
Block a user