From 9931f08adea09715047dd44abda8ddc78809ccc6 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 10 May 1999 09:18:12 +0000 Subject: [PATCH] DnD sample compiles and works git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2385 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/dnd/dnd.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/samples/dnd/dnd.cpp b/samples/dnd/dnd.cpp index 6014a1b10a..cf3015cde9 100644 --- a/samples/dnd/dnd.cpp +++ b/samples/dnd/dnd.cpp @@ -9,20 +9,20 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#include "wx/wxprec.h" +#include #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP -#include "wx/wx.h" +#include #endif -#include "wx/intl.h" -#include "wx/log.h" +#include +#include -#include "wx/dnd.h" +#include #ifdef __WXMOTIF__ #error Sorry, drag and drop is not yet implemented on wxMotif. @@ -42,7 +42,7 @@ class DnDText : public wxTextDropTarget public: DnDText(wxListBox *pOwner) { m_pOwner = pOwner; } - virtual bool OnDropText(int x, int y, const wxChar* psz ); + virtual bool OnDropText(long x, long y, const wxChar* psz ); private: wxListBox *m_pOwner; @@ -53,7 +53,7 @@ class DnDFile : public wxFileDropTarget public: DnDFile(wxListBox *pOwner) { m_pOwner = pOwner; } - virtual bool OnDropFiles(int x, int y, + virtual bool OnDropFiles(long x, long y, size_t nFiles, const wxChar* const aszFiles[] ); private: @@ -349,14 +349,14 @@ DnDFrame::~DnDFrame() // ---------------------------------------------------------------------------- // Notifications called by the base class // ---------------------------------------------------------------------------- -bool DnDText::OnDropText( int, int, const wxChar *psz ) +bool DnDText::OnDropText( long, long, const wxChar *psz ) { m_pOwner->Append(psz); return TRUE; } -bool DnDFile::OnDropFiles( int, int, size_t nFiles, +bool DnDFile::OnDropFiles( long, long, size_t nFiles, const wxChar* const aszFiles[]) { wxString str; -- 2.45.2