Important: The information in this document is obsolete and should not be used for new development.
SetMCInfo
Use theSetMCInfoprocedure to set your application's menu color information table.
PROCEDURE SetMCInfo (menuCTbl: MCTableHandle);
menuCTbl- A handle to a menu color information table.
DESCRIPTION
TheSetMCInfoprocedure copies the table specified by themenuCTblparameter
to your application's menu color information table. If successful, theSetMCInfoprocedure 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
MemErrorto determine whether theSetMCInfoprocedure successfully copied the table. If theSetMCInfoprocedure cannot successfully copy the table, it does not dispose of the current menu color information table and theMemErrorfunction returns a nonzero result code. If theSetMCInfoprocedure is able to successfully copy the table, it disposes of the current menu color information table and theMemErrorfunction returns thenoErrresult code.If the menu color information table specifies a new menu bar color or new menu title colors, your application should call
DrawMenuBarafter callingSetMCInfo.Note that
GetNewMBardoes 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 callingGetMCInfobeforeGetNewMBarand callingSetMCInfoafterward.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 theGetMCInfoandSetMCInforoutines to save and restore menu color information, see Listing 3-6 on page 3-52. See Inside Macintosh: Memory for information on theMemErrorfunction