git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30355
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
//get the _actual_ size of the movie & remember it
long nX, nY, nSX, nSY;
if (FAILED(pVW->GetWindowPosition(&nX,&nY,&nSX,&nSY)))
//get the _actual_ size of the movie & remember it
long nX, nY, nSX, nSY;
if (FAILED(pVW->GetWindowPosition(&nX,&nY,&nSX,&nSY)))
{
wxDSVERIFY( pVW->put_Owner((OAHWND)this->GetHandle()) );
wxDSVERIFY( pVW->put_WindowStyle(WS_CHILD | WS_CLIPSIBLINGS) );
{
wxDSVERIFY( pVW->put_Owner((OAHWND)this->GetHandle()) );
wxDSVERIFY( pVW->put_WindowStyle(WS_CHILD | WS_CLIPSIBLINGS) );
- // wxDSVERIFY( pME->SetNotifyWindow((OAHWND)this->GetHandle(), WM_GRAPHNOTIFY, 0) );
+ wxDSVERIFY( pME->SetNotifyWindow((OAHWND)this->GetHandle(), WM_GRAPHNOTIFY, 0) );
wxDSVERIFY( pVW->put_Visible(OATRUE) ); //OATRUE actually == -1 :)
}
wxDSVERIFY( pVW->put_Visible(OATRUE) ); //OATRUE actually == -1 :)
}
bool wxMovieCtrl::Seek(const wxTimeSpan& where)
{
//DS uses 100 nanos - so we need a 10 mult
bool wxMovieCtrl::Seek(const wxTimeSpan& where)
{
//DS uses 100 nanos - so we need a 10 mult
- LONGLONG pos = ((size_t)where.GetMilliseconds().ToLong()) * 10;
+ LONGLONG pos = (where.GetMilliseconds() * ((wxLongLong)10000)).GetValue();
return SUCCEEDED( ((IMediaSeeking*&)m_pMS)->SetPositions(
&pos,
return SUCCEEDED( ((IMediaSeeking*&)m_pMS)->SetPositions(
&pos,
LONGLONG outCur, outStop;
wxDSVERIFY( ((IMediaSeeking*&)m_pMS)->GetPositions(&outCur, &outStop) );
LONGLONG outCur, outStop;
wxDSVERIFY( ((IMediaSeeking*&)m_pMS)->GetPositions(&outCur, &outStop) );
+ //h,m,s,milli - outdur is in 100 nanos
+ return wxTimeSpan(0,0,0,outCur/10000);
}
wxTimeSpan wxMovieCtrl::Length()
}
wxTimeSpan wxMovieCtrl::Length()
LONGLONG outDuration;
wxDSVERIFY( ((IMediaSeeking*&)m_pMS)->GetDuration(&outDuration) );
LONGLONG outDuration;
wxDSVERIFY( ((IMediaSeeking*&)m_pMS)->GetDuration(&outDuration) );
+ //h,m,s,milli - outdur is in 100 nanos
+ return wxTimeSpan(0,0, 0,outDuration/10000);
}
#endif // wxUSE_DATETIME
}
#endif // wxUSE_DATETIME