Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Macintosh Toolbox Essentials /
Chapter 5 - Control Manager / Control Manager Reference
Data Structures


The Pop-Up Menu Private Data Record

You can obtain the menu handle and the menu ID of the menu associated with a pop-up menu by dereferencing the contrlData field of the pop-up menu's control record. The contrlData field of a control record is a handle to a block of private information. For pop-up menu controls, this field is a handle to a pop-up private data record, which is a data structure of type popupPrivateData.

TYPE  popupPrivateData = 
      RECORD
         mHandle:    MenuHandle;       {handle to menu record}
         mID:        Integer;          {menu ID}
         mPrivate:   ARRAY[0..0] OF SignedByte; {reserved}
      END;
Field Description
mHandle
Contains a handle to the menu.
mID
The menu ID of the menu.
mPrivate
Reserved.
You can use the standard pop-up control definition function to manage pop-up menus. For information on creating pop-up menus, see "Creating a Pop-Up Menu" beginning on page 5-22. See the chapter "Menu Manager" in this book for additional information.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996