]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/listctrl/listtest.h
don't use numbers in URLs if truncateFilenames=no
[wxWidgets.git] / samples / listctrl / listtest.h
index db6eb7cfcfb6fae62ae6b775ca30c44aff245c4c..b3efd7c148ac88972caa632f20a0d6cf52b92e61 100644 (file)
 class MyApp: public wxApp
 {
 public:
 class MyApp: public wxApp
 {
 public:
+    MyApp() { }
+
     virtual bool OnInit();
     virtual bool OnInit();
+
+private:
+    DECLARE_NO_COPY_CLASS(MyApp)
 };
 
 class MyListCtrl: public wxListCtrl
 };
 
 class MyListCtrl: public wxListCtrl
@@ -66,6 +71,7 @@ private:
 
     wxListItemAttr m_attr;
 
 
     wxListItemAttr m_attr;
 
+    DECLARE_NO_COPY_CLASS(MyListCtrl)
     DECLARE_EVENT_TABLE()
 };
 
     DECLARE_EVENT_TABLE()
 };
 
@@ -74,7 +80,9 @@ class MyFrame: public wxFrame
 {
 public:
     MyFrame(const wxChar *title, int x, int y, int w, int h);
 {
 public:
     MyFrame(const wxChar *title, int x, int y, int w, int h);
-    ~MyFrame();
+    virtual ~MyFrame();
+
+    void DoSize();
 
 protected:
     void OnSize(wxSizeEvent& event);
 
 protected:
     void OnSize(wxSizeEvent& event);
@@ -125,8 +133,14 @@ private:
     void InitWithIconItems(bool withText, bool sameIcon = FALSE);
     void InitWithVirtualItems();
 
     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;
 
     wxLog *m_logOld;
 
+    DECLARE_NO_COPY_CLASS(MyFrame)
     DECLARE_EVENT_TABLE()
 };
 
     DECLARE_EVENT_TABLE()
 };