I want a "Delete" menu to pop up when the user right-clicks on a listbox to remove the selected element. However, in order to distinguish mouse buttons I have to use the Mouse_Down event which occurs before the click event so, no element has been selected yet.
How do I retrieve the listitem the mouse is on at the time of mouse_down? I guess the Sendmessage API function is the way to go but I don't know what are the necessary parameters to pass.
How do I retrieve the listitem the mouse is on at the time of mouse_down? I guess the Sendmessage API function is the way to go but I don't know what are the necessary parameters to pass.