Improve main and extended messages handling in new wxMSW wxMessageDialog.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 4 Sep 2010 13:33:29 +0000 (13:33 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 4 Sep 2010 13:33:29 +0000 (13:33 +0000)
commitaebe0d3b6c7f616355816e4f23ad7e01cdb1b0ce
treea26b166b36fa5d73072bf50b39c51842c3a53726
parentb8737371e220ef1920e6a3d2aed88c4bc2b04daf
Improve main and extended messages handling in new wxMSW wxMessageDialog.

Don't use the main message if there is no extended message: this looks bad as
the main message is emphasized to contrast with the extended one which doesn't
make sense visually if there is no extended message.

Also recognize the common use of wxMessageBox() with a multiline text composed
of the first string that plays the role of the main message with the rest
being the extended one and handle this appropriately automatically. This
results in a better appearance by default for a lot of message boxes,
including even the one in our own minimal sample.

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