// is about to be played - and if the user didn't change the state of the
// media (m_bWasStateChanged), when set it back to the stop state.
//
// is about to be played - and if the user didn't change the state of the
// media (m_bWasStateChanged), when set it back to the stop state.
//
// IOleInPlaceSite::OnPosRectChange every file change trying to set itself
// to something different then what we told it to before.
//
// IOleInPlaceSite::OnPosRectChange every file change trying to set itself
// to something different then what we told it to before.
//
IWMPPlayer2* pWMPPlayer2; // Only 2 has windowless video and stretchtofit
if(m_pWMPPlayer->QueryInterface(IID_IWMPPlayer2, (void**)&pWMPPlayer2) == 0)
{
IWMPPlayer2* pWMPPlayer2; // Only 2 has windowless video and stretchtofit
if(m_pWMPPlayer->QueryInterface(IID_IWMPPlayer2, (void**)&pWMPPlayer2) == 0)
{
// and may not be implemented (i.e. stretchToFit on CE)
pWMPPlayer2->put_windowlessVideo(VARIANT_TRUE);
pWMPPlayer2->put_stretchToFit(VARIANT_TRUE);
// and may not be implemented (i.e. stretchToFit on CE)
pWMPPlayer2->put_windowlessVideo(VARIANT_TRUE);
pWMPPlayer2->put_stretchToFit(VARIANT_TRUE);
// you playing a file through WMP.
//
// Here are those hacks. They do indeed "work" as expected - just call
// you playing a file through WMP.
//
// Here are those hacks. They do indeed "work" as expected - just call
// Peter Foot's Friday, May 21, 2004 Blog Post on the issue.
// (He says they are in a registery section entitled "Pendant Bus")
//
// Peter Foot's Friday, May 21, 2004 Blog Post on the issue.
// (He says they are in a registery section entitled "Pendant Bus")
//