for ( int i = 0; i < n; i++ )
{
- (*choices)[i] = aChoices[i];
+ (*choices)[i] = aChoices[i];
}
return n;
const wxString& message,
const wxString& caption,
int n, const wxString *choices,
- long WXUNUSED(styleDlg), // FIXME: why unused?
+ long styleDlg,
const wxPoint& pos,
long styleLbox)
{
#endif
// 4) buttons
- topsizer->Add( CreateButtonSizer( wxOK|wxCANCEL ), 0, wxCENTRE | wxALL, 10 );
+ topsizer->Add( CreateButtonSizer( styleDlg & (wxOK|wxCANCEL) ), 0, wxCENTRE | wxALL, 10 );
SetAutoLayout( TRUE );
SetSizer( topsizer );
// TODO!
#ifndef __WXMOTIF__
if ( m_listbox->HasClientUntypedData() )
- SetClientData(m_listbox->GetClientData(m_selection));
#endif
+ SetClientData(m_listbox->GetClientData(m_selection));
EndModal(wxID_OK);
}
// TODO!
#ifndef __WXMOTIF__
if ( m_listbox->HasClientUntypedData() )
- SetClientData(m_listbox->GetClientData(m_selection));
#endif
+ SetClientData(m_listbox->GetClientData(m_selection));
EndModal(wxID_OK);
}