Re: [AD] drag and drop win32

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


When you have the HWND (through win_get_window()), you can add your own WinProc hook which can piggy-back on Allegro's. From there, it's a trivial matter to intercept any of the WM_ messages.

aj wrote:
At 05:03 PM 12/11/2003 -0700, you wrote:

On November 12, 2003 06:39 am, aj wrote:
> >>>It would probably also be useful to support drag and drop of other
> >>>things, such as bitmaps or text.
> >>
> >>it works by passing a filename.
> >>are you talking about clip-board stuff....
> >>thats something else.
> >
> >Yes - you can drag and drop clipboard items; for example, a block of text
> >from Word can be draged and dropped into another app.
>
> cool.
>
> do you know how to do it ?
>
> do you have a use for it ?
>
> is it likely that it is useful to allegro users ?

Not for games.. Maybe for tools. But that doesn't need to be in allegro. just
use win_get_window() and handle the stuff yourself..



how do you know when a drag and drop operation occurs, (usually the allegro wnd is passed a WM_ msg)
so it has to be coded into the allegro WM_ msg handler switch



-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/


--
- Robert Jr Ohannessian
http://bob.allegronetwork.com/






Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/