hi,
I'm trying to detect doubleclick on my listbox
it seems to be easy but its seems it doesnt work this way ;)
look ...
AmpKC::OnNotify(INT code,INT nID,NMHDR *pnmhdr),INT
{
select nID
{
case Playlist:
select code
{
case LBNDBLCLK:
messagebox(this,"Dclicked!","test");
int selected = PlaylistB->GetCurSel();
string filen = PlaylistB->GetItemText(selected);
string fpath = ARegGetValue("HKEY_CURRENT_USER\\Software\\AmpKC\\Internal\\Playlist\\",filen);
BASS_ChannelStop(stream);
BASS_StreamFree(stream);
stoptimer();
ScrollB->SetScrollPos(0);
playing = false;
Play(fpath+filen);
GetandSetTags(stream);
playing = true;
bplay->enable(false);
bpause->enable(true);
bstop->enable(true);
}
}
return;
}
is there something i'm missing ?
A listbox sends notifications only in WM_COMMAND form, so you should use OnControl for listbox.
LBNDBLCLK is sent only if control styles includes LBS_NOTIFY style (1)
Ha!
ill try that
Thanx Sapero ;)