Re: drag'n'drop with gtk-win32
- From: Tor Lillqvist <tml iki fi>
- To: John Emmas <johne53 tiscali co uk>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: drag'n'drop with gtk-win32
- Date: Fri, 30 Apr 2010 15:56:57 +0300
Can you clarify that for me, Tor? ÂHow is Windows Explorer different from any other external application?
Well, Explorer is obviously a part of Windows, it is not a 3rd-party
application. So it has better access to the internal plumbings of
Windows than normal apps.
But more importantly, the API used to accept files dragged from
Explorer (DragAcceptFiles(), WM_DROPFILES, DragQueryFile(),
DragFinish()) is, as can be seen from the names, specific to files.
(That API is quite old, since NT 3.1 / Windows 95 days.) More generic
drag-and-drop is based on OLE technology, and requires more complex
code in the toolkit / application.
(There is code for the generic drag-and-drop in GTK+, too (see
gdk/win32/gdkdnd-win32.c in recent GTK+), but it is known to be
unfinished and broken, so it isn't used currently.)
--tml
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]