diff --git a/include/wx/msw/tabctrl.h b/include/wx/msw/tabctrl.h index e83f9f2ec0..e97a957a28 100644 --- a/include/wx/msw/tabctrl.h +++ b/include/wx/msw/tabctrl.h @@ -126,7 +126,7 @@ protected: DECLARE_EVENT_TABLE() }; -class WXDLLEXPORT wxTabEvent: public wxCommandEvent +class WXDLLEXPORT wxTabEvent: public wxNotifyEvent { DECLARE_DYNAMIC_CLASS(wxTabEvent) diff --git a/src/msw/tabctrl.cpp b/src/msw/tabctrl.cpp index 3c7df74763..d5fc8ed130 100644 --- a/src/msw/tabctrl.cpp +++ b/src/msw/tabctrl.cpp @@ -440,10 +440,10 @@ void wxMapBitmap(HBITMAP hBitmap, int width, int height) #endif // Tab event -IMPLEMENT_DYNAMIC_CLASS(wxTabEvent, wxCommandEvent) +IMPLEMENT_DYNAMIC_CLASS(wxTabEvent, wxNotifyEvent) wxTabEvent::wxTabEvent(wxEventType commandType, int id): - wxCommandEvent(commandType, id) + wxNotifyEvent(commandType, id) { }