Carbon


NavCBRec

Header: Navigation.h

The NavCBRec structure provides customization information for your application-defined functions.

struct NavCBRec {
    UInt16 version; 
    NavPanelRef context; 
    WindowRef window; 
    Rect customRect; 
    Rect previewRect; 
    NavEventData eventData; 
    char reserved[222];
};
typedef NavCBRec NavCBRecPtr;

Field descriptions

version

Identifies the version of this structure.

context

A pointer to a value set by your application. Your application passes this value in the context parameter of the function NavCustomControl. When Navigation Services calls your event-handling function, your application can obtain this value from the context field.

window

A pointer to the Navigation Services dialog box that generated the call to your application-defined function.

customRect

A local coordinate rectangle describing the customization area available to your application. This determines how much room your application has to install custom controls. For more information on using this field, see “Adding Custom Controls”.

previewRect

A local coordinate rectangle describing the preview area available to your application’s preview function. The minimum size is 145 pixels wide by 118 pixels high.

eventData

A structure of type NavEventData.

reserved

The NavCBRec structure provides customization information for your application-defined functions.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)