PDA

Click to See Complete Forum and Search --> : Can i create a transperent form


sachinsugandhi
Feb 23rd, 2001, 01:26 PM
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, 01:51 PM
Try this:


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

Amon Ra
Feb 23rd, 2001, 11:48 PM
Hey, i recently created a class that u can use to make your form transparent, and to make transitions effects using AnimateWindow. really easy to use, and it should help you. ohh, but u have to be running n win2k though.