git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34512
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
IMediaControl* m_pMC;
IMediaEvent* m_pME;
IMediaPosition* m_pMS;
IMediaControl* m_pMC;
IMediaEvent* m_pME;
IMediaPosition* m_pMS;
wxAMMediaThread* m_pThread;
wxAMMediaThread* m_pThread;
+ if(m_bestSize.x == 0 && m_bestSize.y == 0)
+ m_bVideo = false;
+ else
+ m_bVideo = true;
+
//
// Force the parent window of this control to recalculate
// the size of this if sizers are being used
//
// Force the parent window of this control to recalculate
// the size of this if sizers are being used
void wxAMMediaBackend::Move(int WXUNUSED(x), int WXUNUSED(y),
int w, int h)
{
void wxAMMediaBackend::Move(int WXUNUSED(x), int WXUNUSED(y),
int w, int h)
{
{
RECT srcRect, destRect;
{
RECT srcRect, destRect;
void wxAMMediaEvtHandler::OnEraseBackground(wxEraseEvent& evt)
{
wxAMMediaBackend* pThis = (wxAMMediaBackend*) this;
void wxAMMediaEvtHandler::OnEraseBackground(wxEraseEvent& evt)
{
wxAMMediaBackend* pThis = (wxAMMediaBackend*) this;
+ if(pThis->m_pVMC && pThis->m_bVideo)
{
//TODO: Use wxClientDC?
HDC hdc = ::GetDC((HWND)pThis->m_ctrl->GetHandle());
{
//TODO: Use wxClientDC?
HDC hdc = ::GetDC((HWND)pThis->m_ctrl->GetHandle());
{
wxAMMediaBackend* pThis = (wxAMMediaBackend*) this;
wxPaintDC dc(pThis->m_ctrl);
{
wxAMMediaBackend* pThis = (wxAMMediaBackend*) this;
wxPaintDC dc(pThis->m_ctrl);
+ if( pThis->m_pVMC && pThis->m_bVideo)
{
if( pThis->m_pVMC->RepaintVideo((HWND)pThis->m_ctrl->GetHandle(),
(HDC)dc.GetHDC()) != 0 )
{
if( pThis->m_pVMC->RepaintVideo((HWND)pThis->m_ctrl->GetHandle(),
(HDC)dc.GetHDC()) != 0 )