[beginner] problem with event

Etienne SOBOLE etienne-nospam at tlk.fr
Thu Aug 3 02:11:07 PDT 2006


oups
OK I found. sorry...

what is the usage of
DECLARE_NO_COPY_CLASS(MyZoomView)

thank's


"Etienne SOBOLE" <etienne-nospam at tlk.fr> a écrit dans le message de news: 
44d1b7a3$0$6508$636a55ce at news.free.fr...
> Hi!
>
> I have this code
>
> class MyZoomView: public wxPanel
> {
> public:
>    MyZoomView(wxWindow* parent);
>    virtual ~MyZoomView(){};
>    void OnPaint(wxPaintEvent& event);
>
> private:
>    DECLARE_NO_COPY_CLASS(MyZoomView)
> };
>
> BEGIN_EVENT_TABLE(MyZoomView, wxPanel)
>    EVT_PAINT(MyZoomView::OnPaint)
> END_EVENT_TABLE()
>
> MyZoomView::MyZoomView(wxWindow* parent)
>        : wxPanel(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize,
>                           wxHSCROLL | wxVSCROLL)
> {
> }
>
> void MyZoomView::OnPaint(wxPaintEvent& event)
> {
>    ...
> }
>
> and the compiler tell me
> 526 C:\Dev-Cpp\Projets\test.cpp ISO C++ does not permit 
> `wxPanel::sm_eventTable' to be defined as `MyZoomView::sm_eventTable'
>
> Is it tell me that I could not handle event on a wxpanel ???
> I've tried with a wxwindow ad the error is the same.
>
> thank's...
> 








More information about the wx-users mailing list