VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

True Always On top With API

Liu Yucheng  (4 Submissions)   Windows API Call/Explanation   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

True window always on top. Like MS toolbar.
It floats over any active application is inactive but is still always on top.
Allows you to switch between applications and window is still always on top!
Much better than Jake McCurry's lousy Always on top code.

Inputs
Window Handle of Window to stay on top.

Assumes
Nothing

Returns
Nothing

Side Effects
Nothing

API Declarations
Public Const HWND_BOTTOM = 1
Public Const HWND_NOTOPMOST = -2
Public Const HWND_TOP = 0
Public Const HWND_TOPMOST = -1
Public Const SWP_NOMOVE = &H2
Public Const SWP_NOSIZE = &H1
Public 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
Public Declare Function GetActiveWindow Lib "user32" () As Long

Rate True Always On top With API (5(5 Vote))
True Always On top With API.bas

True Always On top With API Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters