SetLayeredWindowAttributes only works on non-child windows. This means that only top-level forms and forms with the Desktop property to .T. are affected.
Also, this type of window attribute was introduced in Windows 2000 and later implemented in XP. It was not available prior to these OSes.
While you can't make the form translucent, you can do some cool (IMO) stuff with the form using my Form Transformer. Check out File#
9829.
HTH.
>I'm trying to make my form semi-transparent using WinAPI SetLayeredWindowAttributes() (VFP6SP5,Win2000). When the form is "As Top-Level" (ShowWindow=2) this function works, otherwise (In Screen or In Top-Level form) - not. Why? Please, help!
>
>Code here:
>R=GetWindowLong(HWND,-20)
>R=bitor(R,0x00080000)
>SetWindowLong(HWND,-20,R)
>SetLayeredWindowAttributes(H,0,TransparencyLevel,2)
>
>Thanks.
>
>P.S. Can I get semi-transparent form under W9x?
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao