Fix CheckboxFileDialog, for real this time (I hope)

This commit is contained in:
Vojtech Kral 2018-10-19 15:12:38 +02:00
parent b6251dd85b
commit ec0c65a80a
2 changed files with 36 additions and 26 deletions

View file

@ -8,6 +8,7 @@
#include <wx/filedlg.h>
#include <wx/gdicmn.h>
#include <wx/panel.h>
class wxCheckBox;
class wxTopLevelWindow;
@ -37,10 +38,15 @@ public:
bool get_checkbox_value() const;
private:
std::function<wxWindow*(wxWindow*)> extra_control_creator;
wxCheckBox *cbox;
struct ExtraPanel : public wxPanel
{
wxCheckBox *cbox;
static wxWindow* control_creator_trampoline(wxWindow *);
ExtraPanel(wxWindow *parent);
static wxWindow* ctor(wxWindow *parent);
};
wxString checkbox_label;
};