Use wxWindow instead of wxControl in the widgets sample.
Not all widgets are controls and we don't use any of wxControl-specific methods in the sample, so don't require RecreateWidget() to return a wxControl when a simple wxWindow suffices. No real changes.
This commit is contained in:
@@ -52,7 +52,7 @@ public:
|
||||
: WidgetsPage(book, imaglist, statbmp_xpm) {}
|
||||
|
||||
virtual void CreateContent() wxOVERRIDE;
|
||||
virtual wxControl *GetWidget() const wxOVERRIDE { return m_statbmp; }
|
||||
virtual wxWindow *GetWidget() const wxOVERRIDE { return m_statbmp; }
|
||||
virtual void RecreateWidget() wxOVERRIDE;
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user