Option Explicit

Private Sub Form_Click()
End
End Sub

Private Sub Form_Load()
Dim h, d As Long
Dim scrw, scrh As Long
scrw = Me.Width / Screen.TwipsPerPixelX
scrh = Me.Height / Screen.TwipsPerPixelY
h = CreateEllipticRgn(0, 0, scrw, scrh)
d = SetWindowRgn(Me.hWnd, h, True)
End Sub

VB工程--实例93--图形窗体

Option Explicit

Public Declare Function CreateEllipticRgn Lib "gdi32" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long
'CreateEllipticRgn
http://baike.baidu.com/view/2034860.htm
Public Declare Function SetWindowRgn Lib "user32" (ByVal hWnd As Long, ByVal hRgn As Long, ByVal bRedraw As Boolean) As Long
'SetWindowRgn
http://baike.baidu.com/view/1559429.htm

VB工程--实例93--图形窗体

相关文章:

  • 2022-12-23
  • 2021-04-14
  • 2021-08-25
  • 2021-09-29
  • 2022-12-23
  • 2021-12-11
  • 2022-12-23
  • 2021-10-22
猜你喜欢
  • 2021-11-06
  • 2021-10-25
  • 2022-12-23
  • 2022-02-08
  • 2022-12-23
  • 2021-09-02
相关资源
相似解决方案