Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Sources/MSAEMenuUtils.h
#pragma once |
#include "MSToken.h" |
OSErr MenuNameToMenuToken( StringPtr theName, MenuToken *theToken ); |
OSErr GetDescOfNamedMenu( StringPtr theName, AEDesc* result ); |
OSErr GetDescOfNthMenu( short theIndex, AEDesc* result ); |
short CountMenus( void ); |
void GetMenuName( MenuToken* theToken, StringPtr theResult ); |
void SetMenuItemName( MenuItemToken* theToken, StringPtr theResult ); |
OSErr MenuItemNameToMenuItemToken( MenuToken* containerToken, |
StringPtr theName, MenuItemToken *theToken ); |
OSErr GetDescOfNamedMenuItem( MenuToken* containerToken, StringPtr theName, AEDesc* result ); |
OSErr GetDescOfNthMenuItem( MenuToken* containerToken, short theIndex, AEDesc* result ); |
short CountMenuTokenItems( MenuToken* containerToken ); |
void GetMenuItemName( MenuItemToken* theToken, StringPtr theResult ); |
OSErr MakeMenuSpecifier( MenuToken* theToken, AEDesc* theResult ); |
OSErr MakeMenuItemSpecifier( MenuItemToken* theToken, AEDesc* theResult ); |
void MenuTokenFromResID( short theResID, MenuToken* theToken ); |
void MenuItemTokenFromResID( short theResID, MenuItemToken* theToken ); |
MenuHandle MenuHandleFromMenuID( short theMenuID ); |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14