GetMenu()

G

Guest

I'am trying to hook other programs menu. I didn't know how to do that in c# so i used some API functions like GetForgroundWindow(), GetMenu(), GetMenuString() ..

These functions allso worked partially' I couldn't hook all application menu it worked on "caculator" but not on "word" for example (a problem with the GetMenu() I think and Active Accessibility API's)

Anybody know how to do that in c# and why it works partially ?
 
P

phoenix

Just wondering but are the menus in word still ordinary menus? I mean they
look like toolbars to me since you can change there place etc. I would think
they are somehow created by the program and not by the API. But I could be
wrong.

Yves

Desperate said:
I'am trying to hook other programs menu. I didn't know how to do that in
c# so i used some API functions like GetForgroundWindow(), GetMenu(),
GetMenuString() ...
These functions allso worked partially' I couldn't hook all application
menu it worked on "caculator" but not on "word" for example (a problem with
the GetMenu() I think and Active Accessibility API's).
 
P

Philip Rieck

The "menu"s in Word are not standard windows menus - they are completely
implemented by code written for MSOffice. Hence, windows will not see them
as menus but just as child windows.

Desperate said:
I'am trying to hook other programs menu. I didn't know how to do that in
c# so i used some API functions like GetForgroundWindow(), GetMenu(),
GetMenuString() ...
These functions allso worked partially' I couldn't hook all application
menu it worked on "caculator" but not on "word" for example (a problem with
the GetMenu() I think and Active Accessibility API's).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top