This is a continuation of the other thread on Odd Shaped Windows...
thread222-444672
How Do You Create Odd Shaped Buttons in VB...
Do You Need to create additional controls or is there something similar to:
Option Explicit
Private Declare Function CreateEllipticRgn Lib "gdi32" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, _
ByVal Y2 As Long) As Long
Private Declare Function SetWindowRgn Lib "user32" (ByVal hWnd As Long, ByVal hRgn As Long, _
ByVal bRedraw As Boolean) As Long
Private Sub Form_Load()
SetWindowRgn Me.hWnd, CreateEllipticRgn(0, -1, 532, 322), True
End Sub
...that you can use for buttons also (or even the same code modified?)
Also...
is there a contents listing of the gdi32.DLL ? Sometimes... the BASIC things in life are the best...
or at least the most fun ;-)
-Josh Stribling
thread222-444672
How Do You Create Odd Shaped Buttons in VB...
Do You Need to create additional controls or is there something similar to:
Option Explicit
Private Declare Function CreateEllipticRgn Lib "gdi32" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, _
ByVal Y2 As Long) As Long
Private Declare Function SetWindowRgn Lib "user32" (ByVal hWnd As Long, ByVal hRgn As Long, _
ByVal bRedraw As Boolean) As Long
Private Sub Form_Load()
SetWindowRgn Me.hWnd, CreateEllipticRgn(0, -1, 532, 322), True
End Sub
...that you can use for buttons also (or even the same code modified?)
Also...
is there a contents listing of the gdi32.DLL ? Sometimes... the BASIC things in life are the best...
or at least the most fun ;-)
-Josh Stribling