VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Set your Window on top of all forms using SetWindowPos API

Karthikeyan  (187 Submissions)   Windows API Call/Explanation   Visual Basic 5.0   Unknown Difficulty   Wed 14th February 2001   Mon 8th February 2021

Set your Window on top of all forms using SetWindowPos API

API Declarations


Const HWND_BOTTOM = 1 ' Put the window at the bottom of the Z-order.
Const HWND_NOTOPMOST = -2 ' Put the window below all topmost windows and above all non-topmost windows.
Const HWND_TOP = 0 'Put the window at the top of the Z-order.
Const HWND_TOPMOST = -1 'Make the window topmost of all other windows.
Const SWP_FRAMECHANGED = &H20 'The frame changed: send WM_NCCALCSIZE
Const SWP_DRAWFRAME = SWP_FRAMECHANGED
Const SWP_HIDEWINDOW = &H80
Const SWP_NOACTIVATE = &H10
Const SWP_NOMOVE = &H2
Const SWP_NOCOPYBITS = &H100
Const SWP_NOOWNERZORDER = &H200
Const SWP_NOREDRAW = &H8
Const SWP_NOREPOSITION = SWP_NOOWNERZORDER
Const SWP_NOSIZE = &H1
Const SWP_NOZORDER = &H4
Const SWP_SHOWWINDOW = &H40
Dim rval As Long

Rate Set your Window on top of all forms using SetWindowPos API (1(1 Vote))
Set your Window on top of all forms using SetWindowPos API.bas

Set your Window on top of all forms using SetWindowPos API Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters