Private Declare Sub InitCommonControls Lib "comctl32.dll" ()
''Windows API Functions
Private Declare Function CreateWindowEx Lib "user32" Alias "CreateWindowExA" (ByVal dwExStyle As Long, ByVal lpClassName As String, ByVal lpWindowName As String, ByVal dwStyle As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hWndParent As Long, ByVal hMenu As Long, ByVal hInstance As Long, lpParam As Any) As Long
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Declare Function DestroyWindow Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
Private Declare Function GetClientRect Lib "user32" (ByVal hwnd As Long, lpRect As RECT) As Long
Public Function CreateTip(ParentControl_hWnd&, Centered As Boolean, ForeColor&, BackColor&, mTitle$, TipText$, mIcon As ttIconType, Style As ttStyleEnum) As Long
'Returns the Tip Handle (store it in a long variable inorder to modify the tooltip later in your code
Dim lpRect As RECT
Dim lWinStyle As Long
Dim ti As TOOLINFO
Dim lHwnd As Long
'If lHwnd <> 0 Then
' DestroyWindow lHwnd
'End If
lWinStyle = TTS_ALWAYSTIP Or TTS_NOPREFIX
''create baloon style if desired
If Style = TTBalloon Then lWinStyle = lWinStyle Or TTS_BALLOON