Advertisement
Guest User

Modification

a guest
Mar 20th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.72 KB | None | 0 0
  1. Protected Overrides Sub WndProc(ByRef m As Message)
  2.         Select Case m.Msg
  3.             Case &H85
  4.                 If IS_AERO_ENABLED() Then
  5.                     DwmSetWindowAttribute(Me.Handle, 2, 2, 4)
  6.                     DwmExtendFrameIntoClientArea(Me.Handle, New Margins(0, 0, 0, 1))
  7.                 End If
  8.             Case Else
  9.         End Select
  10.  
  11.  
  12.  
  13.         '   This enables the form to be moved in the screen
  14.         If m.Msg = &HA3 Then
  15.             Return
  16.         End If
  17.  
  18.         Select Case m.Msg
  19.             Case &H84
  20.                 MyBase.WndProc(m)
  21.                 If CInt(m.Result) = &H1 Then m.Result = CType(&H2, IntPtr)
  22.                 Return
  23.         End Select
  24.  
  25.         MyBase.WndProc(m)
  26.     End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement