Option Explicit Private Declare Function CreateRoundRectRgn Lib "gdi32" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long, ByVal X3 As Long, ByVal Y3 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 Declare Function DeleteObject Lib "gdi32" (ByVal hObject As Long) As Long Dim lRet As LongPrivate Declare Function SetWindowWord Lib "user32" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal wNewWord As Long) As LongPrivate Sub Form_Click() Me.Visible = False End Sub'Private Declare Function HideCaret Lib "user32" (ByVal hwnd As Long) As Long Private Sub Form_Load()
Dim dl As Long Dim MeWidth As Long Dim MeHeight As Long MeWidth = Me.Width / Screen.TwipsPerPixelX MeHeight = Me.Height / Screen.TwipsPerPixelY lRet = CreateRoundRectRgn(0, 0, MeWidth, MeHeight, 50, 50) dl = SetWindowRgn(Me.hWnd, lRet, True) Dim i As Long Call SetWindowWord(Me.hWnd, -8, MDIForm1.hWnd) FrmHelpMsg.Move FrmHelp.Left - (FrmHelpMsg.Width - FrmHelp.Width) / 4, FrmHelp.Top - FrmHelpMsg.Height - FrmHelp.Height / 10
Me.Refresh
End SubPrivate Sub Form_Resize() Text1.Move 150, 150, Me.Width - 300, Me.Height - 300 End SubPrivate Sub Form_Unload(Cancel As Integer) DeleteObject lRet End Sub
Private Declare Function CreateRoundRectRgn Lib "gdi32" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long, ByVal X3 As Long, ByVal Y3 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 Declare Function DeleteObject Lib "gdi32" (ByVal hObject As Long) As Long
Dim lRet As LongPrivate Declare Function SetWindowWord Lib "user32" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal wNewWord As Long) As LongPrivate Sub Form_Click()
Me.Visible = False
End Sub'Private Declare Function HideCaret Lib "user32" (ByVal hwnd As Long) As Long
Private Sub Form_Load()
Dim dl As Long
Dim MeWidth As Long
Dim MeHeight As Long
MeWidth = Me.Width / Screen.TwipsPerPixelX
MeHeight = Me.Height / Screen.TwipsPerPixelY
lRet = CreateRoundRectRgn(0, 0, MeWidth, MeHeight, 50, 50)
dl = SetWindowRgn(Me.hWnd, lRet, True)
Dim i As Long
Call SetWindowWord(Me.hWnd, -8, MDIForm1.hWnd)
FrmHelpMsg.Move FrmHelp.Left - (FrmHelpMsg.Width - FrmHelp.Width) / 4, FrmHelp.Top - FrmHelpMsg.Height - FrmHelp.Height / 10
Me.Refresh
End SubPrivate Sub Form_Resize()
Text1.Move 150, 150, Me.Width - 300, Me.Height - 300
End SubPrivate Sub Form_Unload(Cancel As Integer)
DeleteObject lRet
End Sub