Click here to Skip to main content
15,902,766 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to Run a executable file using c++ program Pin
Aqueel13-Jan-05 3:56
Aqueel13-Jan-05 3:56 
AnswerRe: How to Run a executable file using c++ program Pin
Budric B.13-Jan-05 4:13
Budric B.13-Jan-05 4:13 
GeneralRe: How to Run a executable file using c++ program Pin
toxcct13-Jan-05 22:42
toxcct13-Jan-05 22:42 
AnswerRe: How to Run a executable file using c++ program Pin
Blake Miller13-Jan-05 4:13
Blake Miller13-Jan-05 4:13 
AnswerRe: How to Run a executable file using c++ program Pin
David Crow13-Jan-05 5:57
David Crow13-Jan-05 5:57 
AnswerRe: How to Run a executable file using c++ program Pin
Michael Dunn13-Jan-05 7:14
sitebuilderMichael Dunn13-Jan-05 7:14 
Generalhooking menu item in active X Pin
mansour_ahmadian13-Jan-05 2:43
mansour_ahmadian13-Jan-05 2:43 
GeneralRe: hooking menu item in active X Pin
Roger Allen13-Jan-05 3:14
Roger Allen13-Jan-05 3:14 
There are two way I know of (and have used in an article) which may be of interest.

The first is to install an application wide hook (target application only) and monitor for WM_INITMENUPOPUP messages. If you use a RET hook (after the call has been processed), you should be able to change the state of inidividual menu items at this point.

The problem is that not all menus will generate a WM_INITMENUPOPUP message (if you specify the TPM_NONOTIFY style). For this I use an application hijack where we basically intercept the OS call to TrackPopupMenu/Ex and handle the menu at this point.

If the TPM_NONOTIFY style is set, you should be able to change the states of menu items at this point and have them correctly take effect.

THe methods I describe above can be found in my article http://www.codeproject.com/menu/QuickODmenu.asp[^]. You should be able to extract the areas of interest (assuming you dont need OD menus) and modify them to do what you need.


If you vote me down, my score will only get lower
QuestionAuto-update of my app? Pin
Hoornet9313-Jan-05 1:57
Hoornet9313-Jan-05 1:57 
AnswerRe: Auto-update of my app? Pin
ThatsAlok13-Jan-05 2:57
ThatsAlok13-Jan-05 2:57 
GeneralRe: Auto-update of my app? Pin
Hoornet9313-Jan-05 3:13
Hoornet9313-Jan-05 3:13 
GeneralRe: Auto-update of my app? Pin
ThatsAlok13-Jan-05 3:27
ThatsAlok13-Jan-05 3:27 
GeneralRe: Auto-update of my app? Pin
Hoornet9314-Jan-05 1:19
Hoornet9314-Jan-05 1:19 
GeneralRe: Auto-update of my app? Pin
ThatsAlok14-Jan-05 2:07
ThatsAlok14-Jan-05 2:07 
GeneralRe: Auto-update of my app? Pin
Hoornet9314-Jan-05 2:37
Hoornet9314-Jan-05 2:37 
GeneralRe: Auto-update of my app? Pin
ThatsAlok14-Jan-05 18:11
ThatsAlok14-Jan-05 18:11 
AnswerRe: Auto-update of my app? Pin
Geert van Horrik24-Feb-05 1:27
Geert van Horrik24-Feb-05 1:27 
GeneralZ order Pin
Arrun13-Jan-05 1:18
Arrun13-Jan-05 1:18 
GeneralRe: Z order Pin
Shog913-Jan-05 11:51
sitebuilderShog913-Jan-05 11:51 
GeneralBitmap Picking and Moving Pin
masd7913-Jan-05 0:56
masd7913-Jan-05 0:56 
GeneralRe: Bitmap Picking and Moving Pin
KaЯl13-Jan-05 4:44
KaЯl13-Jan-05 4:44 
GeneralMathematics question Pin
Rassul Yunussov13-Jan-05 0:04
Rassul Yunussov13-Jan-05 0:04 
GeneralRe: Mathematics question Pin
Selvam R13-Jan-05 0:15
professionalSelvam R13-Jan-05 0:15 
GeneralRe: Mathematics question Pin
Iain Clarke, Warrior Programmer13-Jan-05 5:16
Iain Clarke, Warrior Programmer13-Jan-05 5:16 
GeneralRe: Mathematics question Pin
Rassul Yunussov18-Jan-05 19:59
Rassul Yunussov18-Jan-05 19:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.