HANDLE EVENT evaluates the passed EVNT structure and calls wdlg_evnt() internally. If one of the exit buttons was activated ("Cancel", "OK", "Set", "Mark" or "Options") the function returns a 0 and the button that the user has selected is returned in <button>. If the dialog was confirmed, then the new printer settings are returned in <settings>.
Declaration: WORD pdlg_evnt( PRN_DIALOG *prn_dialog, PRN_SETTINGS *settings, EVNT *events, WORD *button ); Call: cont = pdlg_evnt( prn_dialog, settings, &events, &button ); Variable Argument Meaning Inputs: contrl[0] 206 pdlg_evnt contrl[1] 0 Entries in intin contrl[3] 3 Entries in addrin addrin[0] prn_dialog Pointer to management structure addrin[1] settings Printer settings addrin[2] events Pointer to EVNT structure Outputs: contrl[2] 2 Entries in intout contrl[4] 0 Entries in addrout intout[0] cont 0: Exit button selected 1: Nothing happened intout[1] button Selected button (or 0) Description of <button>: #define PDLG_CANCEL 1 /* "Cancel" was selected */ #define PDLG_OK 2 /* "OK" was pressed */ Description of <settings>: see pdlg_open...