Setup-Definition Code Resource Messages
A telephone tool's setup-definition code resource must be able to handle five messages.
enum { telSpreflightMsg = 0, telSsetupMsg = 1, telSitemMsg = 2, telSfilterMsg = 3, telScleanupMsg = 4 };Constant descriptions
telSpreflightMsg- Your tool receives this message when an application calls
TELSetupPreflightto get a handle to the dialog item list of the basic dialog elements supported by your tool. In response to this message, your tool should return, as its function result, a handle to a list of the basic dialog items needed to set up and configure the tool. The application may them append other items to that list before displaying a setup dialog box. The application is responsible for disposing of that handle.- On entry, parameter
p3points to a long integer that is passed with other setup-definition messages. If your tool needs to allocate and configure any private storage, it should do so now and put the address of that storage into the long integer pointed to byp3. Parametersp1andp2are unused.telSsetupMsg- Your tool receives this message when an application calls
TELSetupSetupto initialize items in the dialog item list returned by theTELSetupPreflightfunction. On entry, parameterp3points to the tool's private setup storage. Your tool can use the information stored there to configure the dialog items. Parametersp1andp2are unused.telSitemMsg- Your tool receives this message when an application calls
TELSetupItemto let your tool process an event that is associated with an item in a custom tool-settings dialog box. On entry, parameterp1points to the index of an item in the dialog item list, and parameterp3points to the tool's private setup storage. Your tool can change the selected item by modifying the item number to whichp1points. Parameterp2is unused.telSfilterMsg- Your tool receives this message when an application calls
TELSetupFilterto let your tool filter an event that is associated with an item in a custom tool-settings dialog box. On entry, parameterp1points to an event record,p2points to the index of an item in the dialog item list, and parameterp3points to the tool's private setup storage. Your tool should respond by returningtrueif it handled the event andfalseotherwise.telScleanupMsg- Your tool receives this message when an application calls
TELSetupCleanuporTELSetupXCleanupto have your tool dispose of any storage allocated inTELSetupPreflightand perform other cleanup operations. On entry, parameterp3points to the tool's private setup storage. Parameterp1is unused. Parameterp2is unused (and set to 0) if the application calledTELSetupCleanup. If the application calledTELSetupXCleanup, parameterp2is set to 1 if theOKedparameter wastrueand is 0 if theOKedparameter wasfalse. Your tool can use the value ofp2as it desires.- Note
- There is no setup-definition code resource message that corresponds to the
TELSetupPostflightfunction, becauseTELSetupPostflightrequires no action from a telephone tool. TheTELSetupPostflightfunction releases the setup-definition code resource from memory.![]()
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help