|
-
Feb 23rd, 2001, 02:26 PM
#1
Thread Starter
Junior Member
Hi friends,
i am quite new in api programming so please help me for creating a form with atransperent look.By using the paint desktop api i can get only the windows background but i also need the icons also to appear which are behind my form. the icons can also be non working or like dummy.so please reply.
Also i want to know wheather it is possible to create some forms with different shape rather than the conventional one, by using api or activex.
-
Feb 23rd, 2001, 02:51 PM
#2
Try this:
Code:
Private Declare Function SetWindowLong _
Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As _
Long, ByVal nIndex As Long, ByVal dwNewLong As _
Long) As Long
Private Const GWL_EXSTYLE = (-20)
Private Const WS_EX_TRANSPARENT = &H20&
Private Sub Form_Activate()
SetWindowLong Me.hwnd, GWL_EXSTYLE, WS_EX_TRANSPARENT
End Sub
-
Feb 24th, 2001, 12:48 AM
#3
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
|