Hi All!,
i'm a newbie...
i'd like to know how i can use multiple inheritance.
i tried :
class MyChild: public wxMDIChildFrame, wxScrolledWindow
{
public:
MyChild(wxMDIParentFrame *parent, const wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, const wxBitmap& bitmap);
MyChild(wxScrolledWindow *parent);
virtual ~MyChild();
void OnPaint(wxPaintEvent& event);
...
DECLARE_EVENT_TABLE()
};
this is the .h file
and the .cpp file is:
MyChild::MyChild(wxMDIParentFrame *parent,
const wxWindowID id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
const wxBitmap& bitmap)
: wxMDIChildFrame(parent, -1, image_name,
wxDefaultPosition, wxDefaultSize),
m_bitmap(bitmap),
wxScrolledWindow(parent)
{
...
}
BEGIN_EVENT_TABLE(MyChild, wxMDIChildFrame) EVT_PAINT(MyChild::OnPaint)
EVT_MOUSE_EVENTS(MyChild::OnMouse)
EVT_SIZE(MyChild::OnSize)
EVT_SCROLL(MyChild::OnScroll)
EVT_CHOICE(FUNC_CHOICE, MyChild::OnFuncChoice)
EVT_CHOICE(SOURCE_CHOICE, MyChild::OnSourceChoice)
EVT_CHOICE(DEST_CHOICE, MyChild::OnDestChoice)
END_EVENT_TABLE()
my problem is that the compiler haves many failures with BEGIN_EVENT_TABLE
|