在本例中,我们制作一个外轮廓是椭圆、中间有一个方孔的窗体。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 Function ReleaseCapture Lib "user32" () As Long
Private Const WM_SYSCOMMAND = &H112
Private Const SC_MOVE = &HF012Private Sub Command1_Click()
    End
End SubPrivate Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    ReleaseCapture
    SendMessage Form1.hwnd, WM_SYSCOMMAND, SC_MOVE, 0
End Sub是实现这样的功能么?