Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: None  |  size: 0.27 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Afxmessagebox pops up several times
  2. Void ClassA::OnRadioButton()
  3. {
  4.      if (Error())
  5.      {
  6.        AfxMessageBox("This is wrong");
  7.        UpdateData(0); //Stay at the same radio button
  8.      }
  9.     else
  10.     {
  11.      UpdateData(1);
  12.      // do something
  13.      UpdateData(0);
  14.    }
  15. }