when the user right clicks on a listbox,List box will receive WM_CONTEXTMENU message and pass it to DefWindowProc,subclass the listbox to handle WM_CONTEXTMENU, does a ChildWindowFromPoint() to determine the handle of the window where the right button was pressed.