| |

VerySource

 Forgot password?
 Register
Search
View: 649|Reply: 4

How to trigger a menu of a ListBox with a message

[Copy link]

3

Threads

5

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-4 13:20:01
| Show all posts |Read mode
There is a menu in the ListBox of another program, and the handle of the ListBox has been obtained. How to send a message to trigger the menu of the ListBox and select the items in it?
Reply

Use magic Report

3

Threads

5

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-1-4 13:21:01
| Show all posts
That menu is a right-click menu
Reply

Use magic Report

1

Threads

15

Posts

12.00

Credits

Newbie

Rank: 1

Credits
12.00

 China

Post time: 2020-1-5 10:24:01
| Show all posts
Use hook to simulate right mouse button?
Reply

Use magic Report

0

Threads

30

Posts

22.00

Credits

Newbie

Rank: 1

Credits
22.00

 China

Post time: 2020-1-6 12:45:01
| Show all posts
Send the message WM_RBUTTONUP to the ListBox and intercept the WM_COMMAND message to get the click menu item.
Reply

Use magic Report

3

Threads

5

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-1-6 12:57:01
| Show all posts
The right-click menu can be triggered, but how to click with a message?
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list