Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MenuItem Click Event with API

Status
Not open for further replies.

mbu

Technical User
Apr 10, 2004
13
US
So far I can find the exact MenuItem ("&Close") from the "File" menu using the GetMenu, GetSubMenu, GetMenuItemCount and loop through the content of a "File" SubMenu. Now that I found the "&Close" MenuItem (confirmes by the GetMenuString, I want to "simulate" a "Click."

Since the MenuItem has it's ID from GetMenuItemID, how can I find the handle so that I can SendMessage or PostMessage.

Thank you for your time,
Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top