|
I want to use the right-click message to trigger a ListBox menu, and then select an item of the menu,
:: PostMessage (pListBoxWnd, WM_RBUTTONDOWN, 0, 0);
:: PostMessage (pListBoxWnd, WM_RBUTTONUP, 0, 0);
Can trigger the menu of ListBox, but I want to move the mouse over an item and click to realize the selection of the menu. So I add mouse_event (MOUSEEVENTF_MOVE, 10,0,0,0); I find that the order is wrong, the mouse does not trigger the right button first, Move again, but move first and then trigger the right-click menu. What's going on? How can the order be wrong? How to overcome this problem |
|