#ifdef __BORLANDC__
#pragma hdrstop
#endif
-#define wxUSE_DIRECTSHOW 0
-#define wxUSE_QUICKTIME 0
//---------------------------------------------------------------------------
// Includes
#if defined(_WIN32)
::SetWindowLong(m_hNotifyWnd, GWL_WNDPROC,
(LONG)wxAMMediaBackend::NotifyWndProc);
+ ::SetWindowLong(m_hNotifyWnd, GWL_USERDATA,
+ (LONG) this);
#else
::SetWindowLongPtr(m_hNotifyWnd, GWLP_WNDPROC,
(LONG_PTR)wxAMMediaBackend::NotifyWndProc);
+ ::SetWindowLongPtr(m_hNotifyWnd, GWL_USERDATA,
+ (LONG) this);
#endif
- ::SetWindowLong(m_hNotifyWnd, GWL_USERDATA,
- (LONG) this);
wxAMVERIFY( m_pME->SetNotifyWindow((LONG_PTR)m_hNotifyWnd,
WM_GRAPHNOTIFY, 0) );
m_ctrl->GetParent()->Layout();
m_ctrl->GetParent()->Refresh();
m_ctrl->GetParent()->Update();
+ m_ctrl->SetSize(m_ctrl->GetSize());
return true;
}
m_ctrl->GetParent()->Layout();
m_ctrl->GetParent()->Refresh();
m_ctrl->GetParent()->Update();
+ m_ctrl->SetSize(m_ctrl->GetSize());
return true;
}
if (m_hNotifyWnd && m_bVideo)
{
MCI_DGV_RECT_PARMS putParms; //ifdefed MCI_DGV_PUT_PARMS
- putParms.rc.top = 0;
- putParms.rc.bottom = 0;
- putParms.rc.right = w;
+ memset(&putParms, 0, sizeof(MCI_DGV_RECT_PARMS));
putParms.rc.bottom = h;
-
- wxMCIVERIFY( mciSendCommand(m_hDev, MCI_PUT,
+ putParms.rc.right = w;
+
+ //wxStackWalker will crash and burn here on assert
+ //and mci doesn't like 0 and 0 for some reason (out of range )
+ //so just don't it in that case
+ if(w || h)
+ {
+ wxMCIVERIFY( mciSendCommand(m_hDev, MCI_PUT,
0x00040000L, //MCI_DGV_PUT_DESTINATION
(DWORD)(LPSTR)&putParms) );
+ }
}
}
LPARAM lParam)
{
wxMCIMediaBackend* backend = (wxMCIMediaBackend*)
+#ifdef _WIN32
::GetWindowLong(hWnd, GWL_USERDATA);
+#else
+ ::GetWindowLongPtr(hWnd, GWLP_USERDATA);
+#endif
wxASSERT(backend);
return backend->OnNotifyWndProc(hWnd, nMsg, wParam, lParam);