00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef __RT_WX_CLASSEX__
00017 #define __RT_WX_CLASSEX__
00018
00019
00020
00021 #include <wx/listctrl.h>
00022 #include <wx/splitter.h>
00023
00024 class ImprovedListCtrl : public wxListCtrl {
00025 public:
00026 ImprovedListCtrl(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition,
00027 const wxSize& size = wxDefaultSize, long style = wxLC_ICON,
00028 const wxValidator& validator = wxDefaultValidator, const wxString& name = "listCtrl");
00029 void SetGrowableCol(int col);
00030
00031 DECLARE_EVENT_TABLE()
00032 private:
00033 void OnSize(wxSizeEvent&);
00034
00035 int growableCol;
00036 };
00037
00038 class ImprovedSplitter : public wxSplitterWindow {
00039 public:
00040 ImprovedSplitter(wxWindow* parent, wxWindowID id, const wxPoint& point = wxDefaultPosition,
00041 const wxSize& size = wxDefaultSize, long style=wxSP_3D, const wxString& name = "splitterWindow");
00042
00043 DECLARE_EVENT_TABLE()
00044 private:
00045 void OnErase(wxEraseEvent&);
00046 };
00047
00048 template <class W> class NoFlickerWindow : public W {
00049 public:
00050 NoFlickerWindow()
00051 {
00052 Connect(-1, wxEVT_ERASE_BACKGROUND, (wxObjectEventFunction) &NoFlickerWindow<W>::OnErase);
00053 }
00054
00055 private:
00056 void OnErase(wxEraseEvent&) { }
00057 };
00058
00059 #endif // file