Advertisement
gecko1

Move Window Without Titlebar | VB6

Jun 20th, 2015
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Const WM_NCLBUTTONDOWN = &HA1
  2. Const HTCAPTION = 2
  3. Private Declare Function ReleaseCapture Lib "user32" () As Long
  4. Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
  5.  
  6. 'In any event
  7.  
  8. Call ReleaseCapture
  9. Call SendMessage(Me.hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement