![]() |
typedef CALLBACK_API( void , PMItemProcPtr )(DialogPtr theDialog, short item);
If your application adds items to a Carbon Printing Manager dialog box, your application must provide an event-handling function to respond to events involving those items. Such an event-handling function is defined by the PMItemProcPtr data type. Use the PMSetItemProc function to install your event-handling function within your printing loop.
This is how would declare your event-handling function if your were to name it MyItemProc:
void MyItemProc (DialogPtr theDialog, short item);
See the description of the PMItemProcPtr function for information about how to implement this routine.