Add support for wxICON_AUTH_NEEDED to wxMessageDialog.

Allow showing the standard "Authentication needed" dialog in the message boxes
under MSW.

Closes #15121.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2013-04-29 12:54:08 +00:00
parent add6e9193d
commit 67315c8bf9
8 changed files with 40 additions and 4 deletions

View File

@@ -3005,7 +3005,8 @@ bool TestMessageBoxDialog::Create()
"&Information icon",
"&Question icon",
"&Warning icon",
"&Error icon"
"&Error icon",
"A&uth needed icon"
};
wxCOMPILE_TIME_ASSERT( WXSIZEOF(icons) == MsgDlgIcon_Max, IconMismatch );
@@ -3106,6 +3107,10 @@ long TestMessageBoxDialog::GetStyle()
case MsgDlgIcon_Error:
style |= wxICON_ERROR;
break;
case MsgDlgIcon_AuthNeeded:
style |= wxICON_AUTH_NEEDED;
break;
}
if ( m_chkCentre->IsChecked() )