Someone need to make the clientdata be void* instead of this char*
mess git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -100,9 +100,9 @@ wxChar *wxGetSingleChoiceData( const wxString& message, const wxString& caption,
|
|||||||
int WXUNUSED(x), int WXUNUSED(y), bool WXUNUSED(centre),
|
int WXUNUSED(x), int WXUNUSED(y), bool WXUNUSED(centre),
|
||||||
int WXUNUSED(width), int WXUNUSED(height) )
|
int WXUNUSED(width), int WXUNUSED(height) )
|
||||||
{
|
{
|
||||||
wxSingleChoiceDialog dialog(parent, message, caption, n, choices, client_data);
|
wxSingleChoiceDialog dialog(parent, message, caption, n, choices, (char **)client_data);
|
||||||
if ( dialog.ShowModal() == wxID_OK )
|
if ( dialog.ShowModal() == wxID_OK )
|
||||||
return dialog.GetSelectionClientData();
|
return (wxChar *)dialog.GetSelectionClientData();
|
||||||
else
|
else
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@@ -186,7 +186,7 @@ wxSingleChoiceDialog::wxSingleChoiceDialog(wxWindow *parent,
|
|||||||
const wxString& message,
|
const wxString& message,
|
||||||
const wxString& caption,
|
const wxString& caption,
|
||||||
const wxStringList& choices,
|
const wxStringList& choices,
|
||||||
wxChar **clientData,
|
char **clientData,
|
||||||
long style,
|
long style,
|
||||||
const wxPoint& pos)
|
const wxPoint& pos)
|
||||||
: wxDialog(parent, -1, caption, pos, wxDefaultSize,
|
: wxDialog(parent, -1, caption, pos, wxDefaultSize,
|
||||||
|
Reference in New Issue
Block a user