bool WndForm::on_command(unsigned id, unsigned code) { switch (id) { case IDCANCEL: /* sent by the WIN32 dialog manager when the user presses Escape */ SetModalResult(mrCancel); return true; } return ContainerWindow::on_command(id, code); }
/** inherited from ActionListener */ void OnAction(int id) override { SetModalResult(id); }