X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7ac080a1c7ce6f9756c03ee97ac8d05abffada75..9739d9ee8090965862ba623b09a8fba731dc3d5c:/include/wx/generic/choicdgg.h diff --git a/include/wx/generic/choicdgg.h b/include/wx/generic/choicdgg.h index 017ec2a43b..7dbf48525a 100644 --- a/include/wx/generic/choicdgg.h +++ b/include/wx/generic/choicdgg.h @@ -16,9 +16,9 @@ #pragma interface "choicdgg.h" #endif -#include "wx/setup.h" #include "wx/dialog.h" -#include "wx/listbox.h" + +class WXDLLEXPORT wxListBox; #define wxCHOICE_HEIGHT 150 #define wxCHOICE_WIDTH 200 @@ -64,13 +64,10 @@ public: long style = wxCHOICEDLG_STYLE, const wxPoint& pos = wxDefaultPosition); - void SetSelection(int sel) ; + void SetSelection(int sel); int GetSelection() const { return m_selection; } wxString GetStringSelection() const { return m_stringSelection; } - // get client data associated with selection - void *GetClientData() const { return m_clientData; } - // obsolete function (NB: no need to make it return wxChar, it's untyped) char *GetSelectionClientData() const { return (char *)m_clientData; } @@ -111,15 +108,14 @@ WXDLLEXPORT int wxGetSingleChoiceIndex(const wxString& message, const wxString& int width = wxCHOICE_WIDTH, int height = wxCHOICE_HEIGHT); // Return client data instead -// FIXME: this is horrible, using "char *" instead of "void *" belongs to the 70s! -WXDLLEXPORT wxChar* wxGetSingleChoiceData(const wxString& message, const wxString& caption, - int n, const wxString *choices, char **client_data, +WXDLLEXPORT void* wxGetSingleChoiceData(const wxString& message, const wxString& caption, + int n, const wxString *choices, void **client_data, wxWindow *parent = (wxWindow *) NULL, int x = -1, int y = -1, bool centre = TRUE, int width = wxCHOICE_WIDTH, int height = wxCHOICE_HEIGHT); -WXDLLEXPORT wxChar* wxGetSingleChoiceData(const wxString& message, const wxString& caption, - int n, wxChar *choices[], char **client_data, +WXDLLEXPORT void* wxGetSingleChoiceData(const wxString& message, const wxString& caption, + int n, wxChar *choices[], void **client_data, wxWindow *parent = (wxWindow *) NULL, int x = -1, int y = -1, bool centre = TRUE, int width = wxCHOICE_WIDTH, int height = wxCHOICE_HEIGHT);