patch initializing the multi choice dialog with the selections array values

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2001-03-12 21:54:39 +00:00
parent e961ff7812
commit e93bfe3c74

View File

@ -259,6 +259,10 @@ size_t wxGetMultipleChoices(wxArrayInt& selections,
int WXUNUSED(width), int WXUNUSED(height))
{
wxMultiChoiceDialog dialog(parent, message, caption, n, choices);
if ( !selections.IsEmpty() )
dialog.SetSelections(selections);
if ( dialog.ShowModal() == wxID_OK )
selections = dialog.GetSelections();
else