wxSnippets Logo   wxWidgets Code
  S N I P P E T S
void MyDialog::OnOK(void)
{
this->wxDialog::SetAffirmativeId(wxID_OK);
this->wxDialog::AcceptAndClose();
}

void MyDialog::OnCancel(void)
{
EndModal(wxID_CANCEL);
}






No comments are included for this article. Submit a comment with your feedback/suggestions.

Click to View Printer Friendly Version