Beispiel #1
0
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);
}
Beispiel #2
0
 /** inherited from ActionListener */
 void OnAction(int id) override {
   SetModalResult(id);
 }