git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13661
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxScrollBar *m_scrollbarHorz,
*m_scrollbarVert;
wxScrollBar *m_scrollbarHorz,
*m_scrollbarVert;
- // the stack of windows which have captured the mouse
- static struct WXDLLEXPORT wxWindowNext *ms_winCaptureNext;
-
#if wxUSE_MENUS
// the current modal event loop for the popup menu we show or NULL
static wxEventLoop *ms_evtLoopPopup;
#if wxUSE_MENUS
// the current modal event loop for the popup menu we show or NULL
static wxEventLoop *ms_evtLoopPopup;
virtual wxHitTest DoHitTest(wxCoord x, wxCoord y) const;
// capture/release the mouse, used by Capture/ReleaseMouse()
virtual wxHitTest DoHitTest(wxCoord x, wxCoord y) const;
// capture/release the mouse, used by Capture/ReleaseMouse()
- virtual void DoCaptureMouse();
- virtual void DoReleaseMouse();
+ virtual void DoCaptureMouse() = 0;
+ virtual void DoReleaseMouse() = 0;
// retrieve the position/size of the window
virtual void DoGetPosition( int *x, int *y ) const = 0;
// retrieve the position/size of the window
virtual void DoGetPosition( int *x, int *y ) const = 0;
// contains the last id generated by NewControlId
static int ms_lastControlId;
// contains the last id generated by NewControlId
static int ms_lastControlId;
+ // the stack of windows which have captured the mouse
+ static struct WXDLLEXPORT wxWindowNext *ms_winCaptureNext;
+
DECLARE_ABSTRACT_CLASS(wxWindowBase)
DECLARE_NO_COPY_CLASS(wxWindowBase)
DECLARE_EVENT_TABLE()
DECLARE_ABSTRACT_CLASS(wxWindowBase)
DECLARE_NO_COPY_CLASS(wxWindowBase)
DECLARE_EVENT_TABLE()
wxWindowNext *next;
} *wxWindow::ms_winCaptureNext = NULL;
wxWindowNext *next;
} *wxWindow::ms_winCaptureNext = NULL;
-void wxWindow::CaptureMouse()
+void wxWindowBase::CaptureMouse()
{
wxLogTrace(_T("mousecapture"), _T("CaptureMouse(0x%08x)"), this);
{
wxLogTrace(_T("mousecapture"), _T("CaptureMouse(0x%08x)"), this);
-void wxWindow::ReleaseMouse()
+void wxWindowBase::ReleaseMouse()