I am a programming noob trying to jump into MFC programming. I am trying to create an mp3player using the mci controls. I am trying to get the get the remaining tim left in the song to display in a textbox. this is what i have so far in my play function.
Code:
void CMP3PlayerDlg::OnPlay()
{
int medialength;
m_Video = NULL;
if (m_Video == NULL)
{
m_Video = MCIWndCreate(this->GetSafeHwnd(),
AfxGetInstanceHandle(),
WS_CHILD | WS_VISIBLE|MCIWNDF_NOMENU,m_Path);
}
else
{
MCIWndHome(m_Video);
}
MCIWndPlay(m_Video);
Pause = FALSE;
MCIWndGetLength(m_Video);
SetWindowText(
//MCIWndGetPosition(m_Video);
}