Bazik, You've given me your mp3 player source to show me how BMP backgrounds work, i got that now so i went on at a mp3 player.

i have now the list and i can put files into that list but how can i play them ?
i just want when i push my play button ( CMD_PLAY ) that it plays the selected mp3 in the list.

What do i have to do ?

Posted on 2002-09-10 04:18:42 by Bolle
Posted on 2002-09-10 04:50:17 by bazik
hmmm, k

i have this listcode:

invoke CreateWindowEx, 0, addr szListViewClass, 0, WS_CHILD or WS_VISIBLE or LVS_REPORT or LVS_NOCOLUMNHEADER,
637, 415, 130, 155, hWin, LV_MAIN, 400000h, 0
mov hListView, eax

invoke SendMessage, eax, WM_SETFONT, hFont, 0
invoke SendMessage, hListView, LVM_SETBKCOLOR, 0, 252525h
invoke SendMessage, hListView, LVM_SETTEXTCOLOR, 0, 00CC00h
invoke SendMessage, hListView, LVM_SETTEXTBKCOLOR, 0, 252525h

mov lvc.imask, LVCF_WIDTH or LVCF_FMT
mov lvc.fmt, LVCFMT_LEFT
mov lvc.lx, 10
invoke SendMessage, hListView, LVM_INSERTCOLUMN, 2, addr lvc

mov lvc.imask, LVCF_WIDTH or LVCF_FMT
mov lvc.fmt, LVCFMT_RIGHT
mov lvc.lx, 120
invoke SendMessage, hListView, LVM_INSERTCOLUMN, 3, addr lvc

I want to select a line and put the name of the mp3 in a variable so that i can play the variable,
i do i do that in the selected line of the list.
Posted on 2002-09-10 06:19:37 by Bolle
I don't have the source here, but IIRC I used WM_NOTIFY to get the current mp3 (did I ?)
But you can also look here.
Posted on 2002-09-10 06:35:28 by bazik
so is this correct?:

.elseif uMsg == WM_NOTIFY
.if wParam == LBN_DBLCLK
invoke PlayMusic
invoke blaa

further more, Whats the difference between eax and edx ?
Posted on 2002-09-10 07:00:19 by Bolle
there is no significant difference between those two registers. except some
typical habits like eax is used to return values when some function is called etc.
Posted on 2002-09-10 07:28:57 by mob
Posted on 2002-09-10 08:25:58 by bazik
Yeah i allready had that, but
1.) i'm a newbie still learning :)
2.) you extracted the codes except the list one's
3.) and almost without comments :(
Posted on 2002-09-11 06:01:38 by Bolle