Hi, can anyone help me how do I use wxMessageDialog? When I use this code, it always shows YES, even if I press NO button. wxMessageDialog* dlg = new wxMessageDialog(this, "Do you realy want to delete this item?", "Delete item", wxYES_NO, wxDefaultPosition);
if (dlg->ShowModal()){ wxLogMessage("YES"); } else { wxLogMessage("NO"); }