Home > Software engineering >  MFC code to achieve the right mouse button click function
MFC code to achieve the right mouse button click function

Time:10-03

How to don't have to right click on the mouse, the code is used to implement the right mouse button click function;
Click on the button, right button in realizing the mouse to click program;
I want to trigger the right mouse button click function, but not with the right mouse button to click on!
Based on the vc or vs platform,
Thank you very much!

CodePudding user response:

Standard menu can be excited by CONTEXTMENU news
That is the function of the menu button on the keyboard
But the question is what you want to bring up the right-click menu
Different applications or different locations in the same program and operation stages right-click menu is not the same as
If the program by yourself
The right-click menu is also your management
What time do you want by any method calls can be

CodePudding user response:

OnBnclickedXXXX ()

LoadMenu
GetSubMenu
TrackPopupMenu

CodePudding user response:

http://www.autohotkey.com
  • Related