]> git.saurik.com Git - wxWidgets.git/commit
Fixed wxMessageBox with only an OK button returning wxCANCEL under MSW.
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Fri, 20 May 2011 22:48:17 +0000 (22:48 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Fri, 20 May 2011 22:48:17 +0000 (22:48 +0000)
commitdc8c61bef78e406080de2be91bc6e8d746edb647
treef6214e00d40b4aff4b32530e457995998781ecf6
parent1667f96a859a4c21606e8a30d792c333dd0adaa3
Fixed wxMessageBox with only an OK button returning wxCANCEL under MSW.

Since r67620 when wxMessageDialog::ShowModal uses a native task dialog and only has an OK button it actually uses a Cancel button, this resulted in the function's return value wrongly changing to wxID_CANCEL. Fix this by handling the special case with only an OK button and return wxID_OK instead of wxID_CANCEL (and thus wxMessageBox, which uses wxMessageDialog::ShowModal, returning wxOK instead of wxCANCEL).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/msgdlg.cpp