VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



this makes form transperent only controls are visible

by Rajeswararao.Gangina (3 Submissions)
Category: Windows API Call/Explanation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 13th November 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

this makes form transperent only controls are visible

API Declarations



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

'
Const GWL_EXSTYLE = (-20)
Const WS_EX_TRANSPARENT = &H20&
Const SWP_FRAMECHANGED = &H20
Const SWP_NOMOVE = &H2
Const SWP_NOSIZE = &H1
Const SWP_SHOWME = SWP_FRAMECHANGED Or SWP_NOMOVE Or SWP_NOSIZE
Const HWND_NOTOPMOST = -2


Rate this makes form transperent only controls are visible



SetWindowLong Frm.hwnd, GWL_EXSTYLE, WS_EX_TRANSPARENT
SetWindowPos Frm.hwnd, HWND_NOTOPMOST, 0&, 0&, 0&, 0&, SWP_SHOWME
End Sub

Download this snippet    Add to My Saved Code

this makes form transperent only controls are visible Comments

No comments have been posted about this makes form transperent only controls are visible. Why not be the first to post a comment about this makes form transperent only controls are visible.

Post your comment

Subject:
Message:
0/1000 characters