GetMenu()

  • Thread starter Thread starter Guest
  • Start date Start date
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 ?
 
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).
 
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).
 
Back
Top