-
Double-click madness
Just wondering...what's the message generated when the user double-clicks on a listbox? I don't like having to use a button to process listbox selections when every other app in the world can just let you double-click an entry :rolleyes: .
Would you just do...
Code:
case WM_COMMAND:
switch(LOWORD(wParam))
{
case ID_LIST1:
switch(HIWORD(wParam))
{
case LBN_DBLCLK:
/*process*/
}
return 0;
}
return 0;
I think that's the way you'd process the messages, but not quite sure...any help?
-
Try this:
case WM_COMMAND:
switch(LOWORD(wParam))
{
if(LOWORD(wParam) == ID_LIST1 && HIWORD(wParam) == LBN_DBLCLK)
{
// Do this
}
}
break;
I have a program that does that and it works.
-
Oh, well considering that code does the same exact thing I guess I was right afterall...thanks.