diff --git a/src/msw/window.cpp b/src/msw/window.cpp index ad808c60cd..23c965885c 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -1746,6 +1746,8 @@ void wxWindowMSW::Update() // drag and drop // --------------------------------------------------------------------------- +#if wxUSE_DRAG_AND_DROP + #if wxUSE_STATBOX // we need to lower the sibling static boxes so controls contained within can be @@ -1777,8 +1779,6 @@ static inline void AdjustStaticBoxZOrder(wxWindow * WXUNUSED(parent)) #endif // wxUSE_STATBOX/!wxUSE_STATBOX -#if wxUSE_DRAG_AND_DROP - void wxWindowMSW::SetDropTarget(wxDropTarget *pDropTarget) { if ( m_dropTarget != 0 ) {