VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Moving a Window without title bar

by Upendra Agnihotram (2 Submissions)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 8th January 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Moving a Window without title bar

API Declarations



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
Private Declare Sub ReleaseCapture Lib "User32" ()
Const WM_NCLBUTTONDOWN = &HA1
Const HTCAPTION = 2

Rate Moving a Window without title bar




ReleaseCapture
SendMessage Me.hWnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&

Download this snippet    Add to My Saved Code

Moving a Window without title bar Comments

No comments have been posted about Moving a Window without title bar. Why not be the first to post a comment about Moving a Window without title bar.

Post your comment

Subject:
Message:
0/1000 characters