ActiveX Documents [Container] - Flash control transparency
-
Hi! I am developing a container in VC++ (COleClientItem and COleDocument). I need to make Shockwave Flash control (provided by Macromedia) transparent, but i am not getting thru. The default WMode property of the control is "window" and in VB, if the WMode property is changed to "Transparent" then during runtime the control becomes transparent and can toggle between Window and Transparent at runtime thru script. Also, when the control is not transparent initially, VB makes a window for it. but at runtime when the control turns transparent, there is no window - and returning to design time also, there is no window. So VB container is initially providing a window, but later removing it when the control becomes transparent and continues to be windowless thereafter. I also inserted the control in VC++ thru component Gallery. But the Create function is there instead of CreateEx where WM_EX_TRANSPARENT can be given. Although i used SetClassLong, it also didnt work, maybe bcoz the window is there. Please reply me is u have a solution ar if u r interested in providing a solution but didnt understand the problem clearly. I will write in more detail for u. Thankyou very much. hints - IQuickActivate is supported by the control and i am using it. Also, regarding property pages - before the property pages for the control maybe initialized, maybe if the WMode is set to Transparent, then it may work. I tried this way - I created a temporart storage using StgCreateDocFile and then created a stream using COleStreamFile. Then created a temporary flash control thru CoCreateInstance, then changed the WMode property to "Transparent" using COleDispatchDriver and saved it to stream. Now I created the actual control and queried for IPersistStreamInit and called its Load method passing the stream. The transparent property is set, but the control is still not transparent. Thankyou. regards, Jeetendra Dhall