Important: The information in this document is obsolete and should not be used for new development.
SetMCInfo
Use theSetMCInfo
procedure to set your application's menu color information table.
PROCEDURE SetMCInfo (menuCTbl: MCTableHandle);
menuCTbl
- A handle to a menu color information table.
DESCRIPTION
TheSetMCInfo
procedure copies the table specified by themenuCTbl
parameter
to your application's menu color information table. If successful, theSetMCInfo
procedure is responsible for disposing of your application's current menu color information table, so your application does not need to explicitly dispose of the
current table.Your application should call the Memory Manager function
MemError
to determine whether theSetMCInfo
procedure successfully copied the table. If theSetMCInfo
procedure cannot successfully copy the table, it does not dispose of the current menu color information table and theMemError
function returns a nonzero result code. If theSetMCInfo
procedure is able to successfully copy the table, it disposes of the current menu color information table and theMemError
function returns thenoErr
result code.If the menu color information table specifies a new menu bar color or new menu title colors, your application should call
DrawMenuBar
after callingSetMCInfo
.Note that
GetNewMBar
does not save your application's current menu color information table. If your application changes menu bars, you can save and restore your application's current menu color information table by callingGetMCInfo
beforeGetNewMBar
and callingSetMCInfo
afterward.SEE ALSO
See "The Menu Color Information Table Record" beginning on page 3-100 for a description of the format of the menu color information table. For an example of using theGetMCInfo
andSetMCInfo
routines to save and restore menu color information, see Listing 3-6 on page 3-52. See Inside Macintosh: Memory for information on theMemError
function