1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| Friend Structure WindowPlacement
Friend Property Length As Integer
Friend Property Flags As Integer
Friend Property ShowCommand As Integer
Friend Property MinPosition As Point
Friend Property MaxPosition As Point
Friend Property NormalPosition As Rectangle
Public Sub New(ByVal _Length As Integer, ByVal _Flags As Integer, ByVal _ShowCommand As Integer, ByVal _MinPosition As Point, ByVal _MinPosition As Point, ByVal _NormalPosition As Rectangle)
Length = _Length
Flags = _Flags
ShowCommand = _ShowCommand
MinPosition = _MinPosition
MaxPosition = _MaxPosition
NormalPosition = _NormalPosition
End Sub
Public Shared Function Default() as WindowPlacement
return new WindowPlacement(Marshal.SizeOf(MonWP), 0, 1, New Point(-1, -1), New Point(-1, -1), Rectangle(10, 10, 100, 100))
End Function
End Structure |
Partager