drag and drop implementation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2001-12-31 16:37:42 +00:00
parent dbfc5b9763
commit a07c12126f
13 changed files with 1070 additions and 246 deletions

View File

@@ -77,7 +77,7 @@ void wxDataFormat::SetType( wxDataFormatId Type )
else if (m_type == wxDF_BITMAP || m_type == wxDF_METAFILE )
m_format = 'PICT';
else if (m_type == wxDF_FILENAME)
m_format = 'SPEC';
m_format = kDragFlavorTypeHFS ;
else
{
wxFAIL_MSG( wxT("invalid dataformat") );
@@ -105,7 +105,7 @@ void wxDataFormat::SetId( NativeFormat format )
if (m_format == 'PICT')
m_type = wxDF_BITMAP;
else
if (m_format == 'SPEC')
if (m_format == kDragFlavorTypeHFS )
m_type = wxDF_FILENAME;
else
m_type = wxDF_PRIVATE;
@@ -198,7 +198,7 @@ bool wxFileDataObject::SetData(
, const void* pBuf
)
{
/* TODO */
m_filenames.Empty();
wxString sFile( (const char *)pBuf); /* char, not wxChar */