Fixed typos in frame and dialog,

Some improvemnts to DnD,
  It's no longer possible to close any
    frame if there is a dialog open.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4390 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1999-11-06 11:21:51 +00:00
parent 6e47faf150
commit 2d68e1b4f4
11 changed files with 75 additions and 56 deletions

View File

@@ -197,13 +197,23 @@ size_t wxFileDataObject::GetDataSize() const
return res + 1;
}
bool wxFileDataObject::SetData(size_t WXUNUSED(size), const void *buf)
bool wxFileDataObject::SetData(size_t size, const void *buf)
{
/* TODO */
// filenames are stores as a string with #0 as deliminators
wxString file( (const char *)buf ); /* char, not wxChar */
AddFile( file );
const char *filenames = (const char*) buf;
size_t pos = 0;
for(;;)
{
if (filenames[0] == 0)
break;
if (pos >= size)
break;
wxString file( filenames ); // this returns the first file
AddFile( file );
pos += file.Len()+1;
filenames += file.Len()+1;
}
return TRUE;
}