January 19th, 2011, 10:18 AM
#1
CListCrtl playing MP3s
Hi there!
For my grade 12 summative project, I decided that I wanted to make an mp3/wma player. At the moment, I have the basics(play, stop with a browse function).
I would like to list all of my mp3s and wmas from a fixed folder in the list control, and by clicking a song and then play, would play the song selected.
I tried to use insert item:
Code:
m_Songs.InsertItem(0,"H:\\My Documents\\Music\\*.mp3");
but it just inserted a string. I have only had minimal class time using MFC functions and codes, but I would really like to be able to do this.
Also, is there any way to reposition this:
Code:
m_Timer = NULL;
if(m_Timer == NULL)
{
m_Timer = MCIWndCreate(this->GetSafeHwnd(),
AfxGetInstanceHandle(),
WS_CHILD | WS_BORDER|WS_VISIBLE|MCIWNDF_NOMENU|MCIWNDF_SHOWNAME,m_Path);
}
else
{
MCIWndHome(m_Timer);
}
MCIWndPlay(m_Timer);
m_Play.EnableWindow(FALSE);
I want to make it near the bottom of the screen, but it always shows up at the top.
I dont neccicarily need code written, but if someone can explain to me what I would need to do or even functions to try, that would be wonderful.
Tags for this Thread
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width
Bookmarks