VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Animates form title bar to fly to and from tray icon. With module added to project takes only one l

Newton Stamper  (2 Submissions)   Custom Controls/Forms/Menus   Visual Basic 4.0 (32-bit)   Unknown Difficulty   Wed 8th September 1999   Mon 8th February 2021

Animates form title bar to fly to and from tray icon. With module added to project takes only one line of code each way.

API Declarations


Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long
Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, ByVal wCmd As Long) As Long
Declare Function DrawAnimatedRects Lib "user32" (ByVal hwnd As Long, ByVal idAni As Long, lprcFrom As RECT, lprcTo As RECT) As Long
Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type
Public Const GW_CHILD = 5
Public Const GW_HWNDFIRST = 0
Public Const GW_HWNDLAST = 1
Public Const GW_HWNDNEXT = 2
Public Const GW_HWNDPREV = 3
Public Const GWL_WNDPROC = (-4)
Public Const IDANI_OPEN = &H1
Public Const IDANI_CLOSE = &H2
Public Const IDANI_CAPTION = &H3
Public Const WM_USER = &H400
Public rctFrom As RECT
Public rctTo As RECT
Public lngTrayHand As Long
Public lngStartMenuHand As Long
Public lngChildHand As Long
Public strClass As String * 255
Public lngClassNameLen As Long
Public lngRetVal As Long

Rate Animates form title bar to fly to and from tray icon. With module added to project takes only one l (2(2 Vote))
Animates form title bar to fly to and from tray icon. With module added to project takes only one l.bas

Animates form title bar to fly to and from tray icon. With module added to project takes only one l Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters