3.5) I use GetMenu() to find a menu in the menu bar, and then change it, but it seems I have a memory leak OR my changes don't "punch through" (User / Machine interaction - Mac Programming)
Description
This article is from the Mac Programming
FAQ, by Jon Watte h+@austin.metrowerks.com with numerous
contributions by others.
3.5) I use GetMenu() to find a menu in the menu bar, and then change it, but it seems I have a memory leak OR my changes don't "punch through" (User / Machine interaction - Mac Programming)
GetMenu() is only intended if you don't already have the menu "in
memory." The call you should use almost all the time is GetMHandle()
which gets the handle to a menu in the current menu bar by its menu ID
(not resource id).
 
Continue to: