VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Gives the form OnTop status without a timer

Eric D. Burdo  (1 Submission)   Custom Controls/Forms/Menus   VB 6.0   Unknown Difficulty   Tue 11th December 2001   Mon 8th February 2021

Gives the form OnTop status without a timer

API Declarations


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 Const SWP_NOMOVE = 2
Private Const SWP_NOSIZE = 1
Private Const HWND_TOPMOST = -1
Private Const HWND_NOTOPMOST = -2

Public Sub SetOnTop(ByVal hwnd As Long, ByVal bSetOnTop As Boolean)
Dim lR As Long
If bSetOnTop Then
lR = SetWindowPos(hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or
SWP_NOSIZE)
Else
lR = SetWindowPos(hwnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or
SWP_NOSIZE)
End If
End Sub



Rate Gives the form OnTop status without a timer (1(1 Vote))
Gives the form OnTop status without a timer.bas

Gives the form OnTop status without a timer Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters