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

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

  
Forum List • Thread List • Reply • 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 • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥880.00 ·
 
 
¥660.00 ·
 
 
¥1,580.00 ·
 
 
¥918.00 ·
 
 
¥430.00 ·
 
 
¥890.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0