返回列表 上一主題 發帖

[發問] SetWindowPos() 函數問題

  1. Public Class Form1
  2.     Private Declare Function SetWindowPos Lib "user32" Alias "SetWindowPos" (ByVal hWnd As System.IntPtr, ByVal hWndInsertAfter As Integer, ByVal x As Integer, ByVal y As Integer, ByVal cx As Integer, ByVal cy As Integer, ByVal wFlags As Integer) As Boolean

  3.     Private Sub Button1_Click(sender As Object, e As System.EventArgs) Handles Button1.Click
  4.         Call SetWindowPos(Me.Handle, -2, 0, 0, 100, 100, &H40&)
  5.     End Sub
  6. End Class
複製代碼
世界那麼大,可我想去哪?

TOP

        靜思自在 : 虛空有盡.我願無窮,發願容易行願難。
返回列表 上一主題