how apply action on list control box item
-
Hi in vc++, In my application i am showing my data in list control box from data bases , now my requirment is that when i double click on an individual data in list box an specific event is fired. i am using LBN_DBLCLK but its not work properly. can any one told me how we can do this
Regard's Kaushik
-
Hi in vc++, In my application i am showing my data in list control box from data bases , now my requirment is that when i double click on an individual data in list box an specific event is fired. i am using LBN_DBLCLK but its not work properly. can any one told me how we can do this
Regard's Kaushik
Y_Kaushik wrote:
i am using LBN_DBLCLK but its not work
Why it didnt work can you explain more?
WhiteSky
-
Hi in vc++, In my application i am showing my data in list control box from data bases , now my requirment is that when i double click on an individual data in list box an specific event is fired. i am using LBN_DBLCLK but its not work properly. can any one told me how we can do this
Regard's Kaushik
Hi MSDN says This message is sent only by a list box that has the LBS_NOTIFY style.
http://www.tanvon.com http://tanvon.wordpress.com http://groups.yahoo.com/group/tanvon http://www.codeproject.com/script/articles/list_articles.asp?userid=1638055
-
Y_Kaushik wrote:
i am using LBN_DBLCLK but its not work
Why it didnt work can you explain more?
WhiteSky
Guruji In this case suppose 10 item come from database suppose its iD 10 11 12 13 20 Now my requirment is that when i bouble click 10 a specific action perform and when double click 11 action perform for id 11 but in my case its fail so can u told me in detail
Regard's Kaushik
-
Hi in vc++, In my application i am showing my data in list control box from data bases , now my requirment is that when i double click on an individual data in list box an specific event is fired. i am using LBN_DBLCLK but its not work properly. can any one told me how we can do this
Regard's Kaushik
Y_Kaushik wrote:
i am using LBN_DBLCLK but its not work properly.
Why not? Remember, the quality of answer you receive is directly proportional to the amount of relevant information that you provide.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Guruji In this case suppose 10 item come from database suppose its iD 10 11 12 13 20 Now my requirment is that when i bouble click 10 a specific action perform and when double click 11 action perform for id 11 but in my case its fail so can u told me in detail
Regard's Kaushik
Do you need to this code?
void CDialogDlg::OnLbnDblclkList1()
{
switch(m_List.GetCurSel())
{
case 0:
MessageBox("A");
break;
case 1:
MessageBox("B");
break;
case 2:
MessageBox("C");
break;}
}
if its not your answer can your more explain,please
WhiteSky