home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!decwrl!csus.edu!netcom.com!gurgle
- From: gurgle@netcom.com (Pete Gontier)
- Subject: Re: DeleteMenu doesn't work
- Message-ID: <c2-nd4.gurgle@netcom.com>
- Date: Sun, 23 Aug 92 19:50:54 GMT
- Organization: cellular
- References: <14504@mindlink.bc.ca>
- Lines: 19
-
- Daryl_Spitzer@mindlink.bc.ca (Daryl Spitzer) writes:
-
- >I can seems to remove the menu from the bar.
-
- > hMenu = GetMenu( 901 );
- > InsertMenu( hMenu, 0 );
- > DrawMenuBar();
- > DeleteMenu( 901 );
- > DrawMenuBar();
-
- >Everything works fine, except the menu is still there when the menu bar is
-
- Probably the menu ID *within* your menu resource does not match the resource
- ID. The resource ID is how you refer to your menu when calling GetMenu,
- and the menu ID (*within* the menu resource) is how you refer to the
- menu thereafter. I know it's stupid, but them's the breaks. Open up ResEdit
- and take a look.
- --
- Pete Gontier // EC Technology // gurgle@netcom.com
-