ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] SetWindowPos() ¨ç¼Æ°ÝÃD

  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
½Æ»s¥N½X
¥@¬É¨º»ò¤j¡A¥i§Ú·Q¥h­þ¡H

TOP

        ÀR«ä¦Û¦b : ºw¤ô¦¨ªe¡C²É¦Ì¦¨ÅÚ¡A¤Å»´¤vÆF¡A¤Å¥Hµ½¤p¦Ó¤£¬°¡C
ªð¦^¦Cªí ¤W¤@¥DÃD