Right Click List Box

This doesn't get it...

1
2
3
4
5
6
7
8
9
10
11
12
case WM_NOTIFY:
switch(LOWORD(wParam))
{
 case ID_MYLISTBOX:
 switch(((LPNMHDR)lParam)->code)
 {
  case NM_RCLICK:
   MessageBox(hwnd, "Got here!\t", szAppName, MB_OK);
  break;
 }
}
break;


I need to trap the right click of the mouse when it's over the lixt box, combo box, etc.
Topic archived. No new replies allowed.