lotus



previous page: 3.4) When the user selects my menus, I get strange results back; they seem to have different menu IDs than my menus? (User / Machine interaction - Mac Programming)
  
page up: Mac Programming FAQ
  
next page: 3.6) What about pre-emptive multitasking? (User / Machine interaction - Mac Programming)

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:















TOP
previous page: 3.4) When the user selects my menus, I get strange results back; they seem to have different menu IDs than my menus? (User / Machine interaction - Mac Programming)
  
page up: Mac Programming FAQ
  
next page: 3.6) What about pre-emptive multitasking? (User / Machine interaction - Mac Programming)