Use an appropriate icon automatically in wxMSW wxMessageDialog.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 14 Mar 2010 14:15:49 +0000 (14:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 14 Mar 2010 14:15:49 +0000 (14:15 +0000)
commitb76b3d2854fae7c61c2472db88cb65aea9b7a08d
treeee08bc6ccb1ef9c107da01c72f5db41f244bffa3
parent8bd410eb8082d9e009ece7cc279faa5f73ea1f5e
Use an appropriate icon automatically in wxMSW wxMessageDialog.

wxMessageBox() functions uses wxICON_QUESTION or wxICON_INFORMATION
automatically if no other icon style (including wxICON_NONE) is specified but
wxMessageDialog under MSW didn't do this, unlike under e.g. wxGTK.

Fix this by also determining the appropriate icon automatically in
wxMessageDialog itself in wxMSW.

Ideally we'd do this in all ports wxMessageDialog implementations and remove
the code doing it from wxMessageBox() but right now it's still needed for the
platforms other than wxMSW and wxGTK.

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