From dbad89ddf667b448f445fb1bc64cf1983136afe6 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Fri, 22 Nov 2002 23:06:23 +0000 Subject: [PATCH] wxTabEvent should derive from wxNotifyEvent, not wxCommandEvent git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17949 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/tabctrl.h | 2 +- src/msw/tabctrl.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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) { }