|
-
Oct 31st, 2000, 06:46 AM
#1
Thread Starter
Addicted Member
I want to activate only a child window from a parent without the parent being "shown". Is it programmatically possible.
Shawn Hull
VB6, SP3 (Professional Edition)
-
Oct 31st, 2000, 03:20 PM
#2
Make the parent Form transparent, and you can make all your child windows visible.
-
Nov 1st, 2000, 09:25 PM
#3
Thread Starter
Addicted Member
I guess the obvious question is how to make the parent window transparent. I am guessing there is an api call for this, maybe ShowWindow? If you know tha api to do this please let me know.
Shawn Hull
VB6, SP3 (Professional Edition)
-
Nov 2nd, 2000, 04:02 PM
#4
Add the following to a form with a Timer.
Code:
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Const GWL_EXSTYLE = (-20)
Const WS_EX_TRANSPARENT = &H20&
Private Sub Timer1_Timer()
SetWindowLong hwnd, GWL_EXSTYLE, WS_EX_TRANSPARENT
End Sub
-
Nov 2nd, 2000, 09:44 PM
#5
Thread Starter
Addicted Member
Thanks Megatron, I will play around with what you have given me.
So many useful API calls, so little knowledge of them.
Shawn Hull
VB6, SP3 (Professional Edition)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|