X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c71963cdbeb3b801cbce75830922dfa05c5ee721..c0b15381d1ebac677ae281f5e864ab3d7f66eff5:/samples/listctrl/listtest.h diff --git a/samples/listctrl/listtest.h b/samples/listctrl/listtest.h index 0fafad7b75..b3efd7c148 100644 --- a/samples/listctrl/listtest.h +++ b/samples/listctrl/listtest.h @@ -80,7 +80,9 @@ class MyFrame: public wxFrame { public: MyFrame(const wxChar *title, int x, int y, int w, int h); - ~MyFrame(); + virtual ~MyFrame(); + + void DoSize(); protected: void OnSize(wxSizeEvent& event); @@ -131,6 +133,11 @@ private: void InitWithIconItems(bool withText, bool sameIcon = FALSE); void InitWithVirtualItems(); + // return true if the control is not in virtual view, give an error message + // and return false if it is + bool CheckNonVirtual() const; + + wxLog *m_logOld; DECLARE_NO_COPY_CLASS(MyFrame)