Пример #1
0
//-------------------------------------------------------------------------
//      Name:   CmdQuit
//      Desc:   correct termination of this thread upon the request from the dialog
//      Parameters:
//      Return:
//      Other:  (1) Stop all movies
//              (2) Set quit event
//-------------------------------------------------------------------------
void CMultiSAP::CmdQuit(sMovieInfo * pMovInf)
{
    for( int i=0; i<m_movieList.GetSize(); i++)
    {
        CMovie *pmovie = m_movieList.GetMovieByIndex(i);
        if( pmovie )
        {
            pmovie->PauseMovie();
            pmovie->StopMovie();
        }
    }

    return;
}
Пример #2
0
//-------------------------------------------------------------------------
//  CmdStopMovie
//-------------------------------------------------------------------------
void CMultiSAP::CmdStopMovie(sMovieInfo * pMovInf)
{
    if( NULL == pMovInf)
    {
        OutputDebugString(TEXT("Invalid parameter sent to CmdStopMovie()\n"));
        return;
    }

    CMovie *pmovie = NULL;
    pmovie = m_movieList.GetMovie( pMovInf->pdwUserID );

    if( NULL == pmovie)
    {
        OutputDebugString(TEXT("CmdStopMovie() received unrecognized UserID\n"));
        return;
    }

    pmovie->StopMovie();

    return;
}