Important: The information in this document is obsolete and should not be used for new development.
MyGetEditMenuState
Color picker-defined subroutine that handles akGetEditMenuState
request.If you create a color picker, it must respond to the
kGetEditMenuState
request code. The Color Picker Manager sends this code to request information about the desired state of the Edit menu for your color picker. A color picker responds to thekGetEditMenuState
request code by calling a color picker-defined subroutine (for example,MyGetEditMenuState
) to handle the request.
pascal ComponentResult MyGetEditMenuState ( PickerStorageHndl storage, MenuState *mState);
storage
- A handle to your color picker's global data.
mState
- A pointer to a
MenuState
structure (page 2-19).DISCUSSION
In theMenuState
structure pointed to in themState
parameter, yourMyGetEditMenuState
function should return information about your color picker's Edit menu. The Color Picker Manager sets the Edit menu to this state.Your function should return
noErr
if successful, or an appropriate result code otherwise.SEE ALSO
Listing 2-31 (page 2-46) in Advanced Color Imaging on the Mac OS illustrates how to implement this function.