Albrecht's DND under WIN32 bug fix.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2596 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 2002-08-20 15:29:25 +00:00
parent 43519f1264
commit 323ae2238e
2 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,7 @@
CHANGES IN FLTK 1.1.0 CHANGES IN FLTK 1.1.0
- DND events were being sent to the target window
instead of the target widget under WIN32.
- The newest Cygwin needs the same scandir() handling as - The newest Cygwin needs the same scandir() handling as
HP-UX. HP-UX.
- FLUID didn't register the image formats in the - FLUID didn't register the image formats in the

View File

@ -1,5 +1,5 @@
// //
// "$Id: fl_dnd_win32.cxx,v 1.5.2.12 2002/06/29 00:10:04 matthiaswm Exp $" // "$Id: fl_dnd_win32.cxx,v 1.5.2.13 2002/08/20 15:29:25 easysw Exp $"
// //
// Drag & Drop code for the Fast Light Tool Kit (FLTK). // Drag & Drop code for the Fast Light Tool Kit (FLTK).
// //
@ -172,7 +172,7 @@ public:
//long len = GlobalSize( medium.hGlobal ); //long len = GlobalSize( medium.hGlobal );
Fl::e_length = strlen( (char*)stuff ); // min(strlen, len) Fl::e_length = strlen( (char*)stuff ); // min(strlen, len)
Fl::e_text = (char*)stuff; Fl::e_text = (char*)stuff;
target->handle(FL_PASTE); // e_text will be invalid after this call Fl::belowmouse()->handle(FL_PASTE); // e_text will be invalid after this call
GlobalUnlock( medium.hGlobal ); GlobalUnlock( medium.hGlobal );
ReleaseStgMedium( &medium ); ReleaseStgMedium( &medium );
SetForegroundWindow( hwnd ); SetForegroundWindow( hwnd );
@ -197,7 +197,7 @@ public:
if ( i<nf-1 ) *dst++ = '\n'; if ( i<nf-1 ) *dst++ = '\n';
} }
*dst = 0; *dst = 0;
target->handle(FL_PASTE); Fl::belowmouse()->handle(FL_PASTE);
free( Fl::e_text ); free( Fl::e_text );
ReleaseStgMedium( &medium ); ReleaseStgMedium( &medium );
SetForegroundWindow( hwnd ); SetForegroundWindow( hwnd );
@ -349,5 +349,5 @@ int Fl::dnd()
// //
// End of "$Id: fl_dnd_win32.cxx,v 1.5.2.12 2002/06/29 00:10:04 matthiaswm Exp $". // End of "$Id: fl_dnd_win32.cxx,v 1.5.2.13 2002/08/20 15:29:25 easysw Exp $".
// //