From: Julian Smart Date: Tue, 6 Feb 2001 15:03:46 +0000 (+0000) Subject: Fixed sashwin events X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/32956769e9470c617a968ede7da90423897fdaea Fixed sashwin events git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/generic/sashwin.h b/include/wx/generic/sashwin.h index 81fcdf1b88..2e90124cc7 100644 --- a/include/wx/generic/sashwin.h +++ b/include/wx/generic/sashwin.h @@ -193,7 +193,11 @@ private: DECLARE_EVENT_TABLE() }; -#define wxEVT_SASH_DRAGGED (wxEVT_FIRST + 1200) +BEGIN_DECLARE_EVENT_TYPES() + DECLARE_EVENT_TYPE(wxEVT_SASH_DRAGGED, wxEVT_FIRST + 1200) +END_DECLARE_EVENT_TYPES() + +// #define wxEVT_SASH_DRAGGED (wxEVT_FIRST + 1200) enum wxSashDragStatus { diff --git a/src/generic/sashwin.cpp b/src/generic/sashwin.cpp index f567e1113d..1b64276b86 100644 --- a/src/generic/sashwin.cpp +++ b/src/generic/sashwin.cpp @@ -36,6 +36,8 @@ #include "wx/sashwin.h" #include "wx/laywin.h" +DEFINE_EVENT_TYPE(wxEVT_SASH_DRAGGED) + IMPLEMENT_DYNAMIC_CLASS(wxSashWindow, wxWindow) IMPLEMENT_DYNAMIC_CLASS(wxSashEvent, wxCommandEvent)