I have arranges a video clip to be played in my MFC application, a sort of screen saver.
However I would like it to play over and over again?
Code so far:
hMCI = MCIWndCreate(m_screen, AfxGetApp()->m_hInstance, MCIWNDF_SHOWALL | MCIWNDF_NOMENU | MCIWNDF_NOOPEN | MCIWNDF_NOPLAYBAR, szPath);
MCIWndPlay(hMCI); // Button starts the clip
I can pause the clip by
MCIWndPause(hMCI); // Again via a button
But how do you determine if have reached the end and arrange for a start the clip again?
However I would like it to play over and over again?
Code so far:
hMCI = MCIWndCreate(m_screen, AfxGetApp()->m_hInstance, MCIWNDF_SHOWALL | MCIWNDF_NOMENU | MCIWNDF_NOOPEN | MCIWNDF_NOPLAYBAR, szPath);
MCIWndPlay(hMCI); // Button starts the clip
I can pause the clip by
MCIWndPause(hMCI); // Again via a button
But how do you determine if have reached the end and arrange for a start the clip again?