git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30769
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// wxAMMediaBackend::CreateControl
//
// ActiveMovie does not really have any native control to speak of,
// wxAMMediaBackend::CreateControl
//
// ActiveMovie does not really have any native control to speak of,
-// so we just create a normal control with a black background.
+// so we just create a normal control.
//
// We also check to see if ActiveMovie is installed
//---------------------------------------------------------------------------
//
// We also check to see if ActiveMovie is installed
//---------------------------------------------------------------------------
validator, name) )
return false;
validator, name) )
return false;
- //
- //Set our background color to black by default
- //
- ctrl->SetBackgroundColour(*wxBLACK);
-
m_ctrl = ctrl;
return true;
}
m_ctrl = ctrl;
return true;
}
validator, name) )
return false;
validator, name) )
return false;
- //
- //Set our background color to black by default
- //
- ctrl->SetBackgroundColour(*wxBLACK);
-
m_ctrl = ctrl;
return true;
}
m_ctrl = ctrl;
return true;
}
::SetWindowLong(m_hNotifyWnd, GWL_USERDATA,
(LONG) this);
::SetWindowLong(m_hNotifyWnd, GWL_USERDATA,
(LONG) this);
//
//Here, if the parent of the control has a sizer - we
//tell it to recalculate the size of this control since
//
//Here, if the parent of the control has a sizer - we
//tell it to recalculate the size of this control since
MCI_PLAY_PARMS playParms;
playParms.dwCallback = (DWORD)m_hNotifyWnd;
MCI_PLAY_PARMS playParms;
playParms.dwCallback = (DWORD)m_hNotifyWnd;
+ m_ctrl->Show(m_bVideo);
+
return ( mciSendCommand(m_hDev, MCI_PLAY, MCI_NOTIFY,
(DWORD)(LPVOID)&playParms) == 0 );
}
return ( mciSendCommand(m_hDev, MCI_PLAY, MCI_NOTIFY,
(DWORD)(LPVOID)&playParms) == 0 );
}
validator, name) )
return false;
validator, name) )
return false;
- //
- //Set our background color to black by default
- //
- ctrl->SetBackgroundColour(*wxBLACK);
-
m_ctrl = ctrl;
return true;
}
m_ctrl = ctrl;
return true;
}
}
//---------------------------------------------------------------------------
}
//---------------------------------------------------------------------------
-// wxQTMediaBackend::Move
+// wxQTMediaBackend::GetPosition
+// 1) Calls GetMovieTime to get the position we are in in the movie
+// in milliseconds (we called
//---------------------------------------------------------------------------
wxLongLong wxQTMediaBackend::GetPosition()
{
//---------------------------------------------------------------------------
wxLongLong wxQTMediaBackend::GetPosition()
{