请问怎么样让界移动
我把窗体做成这样了,请问怎么样才可以让鼠标托动它时跟着鼠标移动到指定位置?
2010-12-20 10:53
2010-12-20 13:49

2010-12-21 11:07

2010-12-21 12:51
2010-12-22 17:26
2010-12-23 10:06
2011-01-12 11:31
2011-01-12 15:55
程序代码:Option Explicit 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 Private Const HTCAPTION = 2 Private Const WM_NCLBUTTONDOWN = &HA1 Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) ReleaseCapture SendMessage hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0& End Sub

2011-01-12 17:32
2011-01-12 19:10