PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Elias Montoya on March 02, 2008, 10:34:24 PM

Title: Question about Menus
Post by: Elias Montoya on March 02, 2008, 10:34:24 PM

I have a menu in my dialog its the "Formatting" menu, one of few in top,
others are "File", "Edit", Etc... but i want to be able to call that same menu
when user right clicks in the surface of the dialog. Is it possible? If so, How?

Thanx. :)
Title: Re: Question about Menus
Post by: Jose Roca on March 03, 2008, 02:31:07 AM
Get the handle of the menu with GetMenu; get the handle of the submenu with GetSubMenu; call TrackPopupMenu.
Title: Re: Question about Menus
Post by: Elias Montoya on March 03, 2008, 04:07:34 PM
 Thanx jose, Ill give it a try.  :)