allow centering wxMessageDialog on its parent window (patch 1836072)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-12-22 16:52:31 +00:00
parent eeb0bee1d3
commit 1d89da8a5c
4 changed files with 79 additions and 4 deletions

View File

@@ -650,10 +650,10 @@ void MyFrame::LogDialog(wxCommandEvent& WXUNUSED(event))
#if wxUSE_MSGDLG
void MyFrame::MessageBox(wxCommandEvent& WXUNUSED(event) )
{
wxMessageDialog dialog(NULL,
wxMessageDialog dialog(this,
_T("This is a message box\nA long, long string to test out the message box properly"),
_T("Message box text"),
wxNO_DEFAULT | wxYES_NO | wxCANCEL | wxICON_INFORMATION);
wxCENTER | wxNO_DEFAULT | wxYES_NO | wxCANCEL | wxICON_INFORMATION);
if ( dialog.SetYesNoLabels(_T("Answer &Yes"),_T("Answer &No")) )
{