Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When I use wxActiveXContainer and ShockwaveFlash ActiveX to display flash media, I set "transparent" to the ShockwaveFlash's "WMode" variable.However,the flash media's background still be rendered. the code:
C++
const CLSID CLSID_ShockwaveFlash = __uuidof(ShockwaveFlash);
const IID   IID_IShockwaveFlash  = __uuidof(IShockwaveFlash);
HRESULT hr = ::CoCreateInstance(CLSID_ShockwaveFlash, NULL, CLSCTX_INPROC_SERVER,
                                IID_IShockwaveFlash, (void **)&m_pFlash);
    if ( FAILED(hr) )
    {
        wxLogSysError(hr, "Failed to create Flash ActiveX control");
        return;
    }
    CMyActiveXContainer *pActive = new CMyActiveXContainer(this, IID_IShockwaveFlash, m_pFlash);
    hr = m_pFlash->LoadMovie(0, m_strSwfFile.wc_str());
    m_pFlash->PutWMode(L"transparent");


The flash media has no problem, I can use the method complete this work.
How to solve the problem???
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900