Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / November 2005



Tip: Looking for answers? Try searching our database.

PPx: Using GetMenuHandle() with a submenu

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael McLaughlin - 16 Nov 2005 19:04 GMT
In a PPx app, I have a line of code

MenuRef    theMenu = ::GetMenuHandle(260);

where 260 is the MenuID for a submenu created in IB (all latest
versions).  This submenu is item 1 on menu 258 (in the menubar).

Analogous code works fine for menus on the menubar but returns NULL for
submenus even though IB and the XML file in the package all agree on the
MenuID number.

Isn't GetMenuHandle() supposed to work for both menus and submenus?

--
Mike McLaughlin
larry@skytag.com - 17 Nov 2005 02:37 GMT
You asked this exact question in July of this year and I answered it:

http://www.codecomments.com/archive244-2005-7-541554.html

Nothing's changed since then.

Larry
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.