Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Const WM_NCLBUTTONDOWN = &HA1
- Const HTCAPTION = 2
- Private Declare Function ReleaseCapture Lib "user32" () As Long
- 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
- 'In any event
- Call ReleaseCapture
- Call SendMessage(Me.hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement