Pass a pointer to the entire dialog box structure to event handlers, rather