void dialog_view_callback(twidget& caller) { D* dialog = dynamic_cast<D*>(caller.dialog()); assert(dialog); twindow* window = dynamic_cast<twindow*>(caller.get_window()); assert(window); (*(dialog->get_view()).*fptr)(*window); }
void dialog_view_callback(twidget& caller) { D* dialog = dynamic_cast<D*>(caller.dialog()); assert(dialog); (*(dialog->get_view()).*fptr)(); }