传给窗口一个WM_WINDOWPOSCHANGING消息,移动完成后,会发送WM_WINDOWPOSCHANGED消息。
在VB里面制作自己的消息循环,比较麻烦。顺便问一下,你要实现什么功能,可能会有其他的解决方法。

解决方案 »

  1.   

    VERSION 5.00
    Begin VB.Form Form1 
       Caption         =   "Form1"
       ClientHeight    =   3195
       ClientLeft      =   60
       ClientTop       =   345
       ClientWidth     =   4680
       LinkTopic       =   "Form1"
       ScaleHeight     =   3195
       ScaleWidth      =   4680
       StartUpPosition =   3  'Windows Default
       Begin VB.Timer Timer1 
          Interval        =   50
          Left            =   1800
          Top             =   1320
       End
    End
    Attribute VB_Name = "Form1"
    Attribute VB_GlobalNameSpace = False
    Attribute VB_Creatable = False
    Attribute VB_PredeclaredId = True
    Attribute VB_Exposed = False
    Private Sub Timer1_Timer()
        If Top < 0 Then Top = 0
        If Left < 0 Then Left = 0
    End Sub
      

  2.   

    只要按住Ctrl,在点“我要回复”三次,帖子的分就是你的,不信试试。