how to retrieve menus and submenus info? - TechRepublic
General discussion
May 11, 2003 at 05:34 PM
adeshy

how to retrieve menus and submenus info?

by adeshy . Updated 23 years, 2 months ago

Hi,

I am facing the problem in retrieving of the Menus and subMenus information for some Applicaitons like MS Excel,MS Word,MS Powerpoint and JMP IN etc.,

I am getting the below errors:
(1) The instruction at “0x——–” referenced memory at”ox———“. The memory could not be “read”.
click on OK to terminate the program
click on CANCEL to debug the program
when the application is MDI and in maximized window state.

(2) some times I did not retrieve any information.

The code i used to construct tree structure :
*********************************************

treeview control
APIs used:

GetMenu()
GetMenuItemCount()
GetMenuItemInfo()

U will be appreciated if u could figure out the solution for my problem.
Thanks
Adesh.

This discussion is locked

All Comments