Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / wxMessageDialog question

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. wxMessageDialog question
#3369
Posted by: xburge03 2004-02-14 23:18:44
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");
}
Message2. Re: wxMessageDialog question
#3370
Posted by: xburge03 2004-02-14 23:24:30
ehm, I have solved it :o)

        if (dlg->ShowModal() == wxID_YES){
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2024-3-29  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0