|
|
#1 |
|
Forum King
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
|
Ml_ipc_handledrag
Hmm, how does ML_IPC_HANDLEDRAG and the others work? Can I make it possible to drag things to ML from another plugin?
/Joonas |
|
|
|
|
|
#2 |
|
Senior Member
|
hmm... i can drag stuff from my AL to ML... but ML doesn't seem to like dropped m3u files...
![]() i think all you need is IDropSource and IDataObject. Obviously, if you want to be the drop target, you would need IDropTarget as well... check the source code of AL if you're interested in how that's done...
Album List for Winamp - Download: v1.43, v2.06, v2.07 beta Wallpaper for Playlist Editor - Download: v1.06 |
|
|
|
|
|
#3 |
|
Forum King
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
|
You're using MFC though...much easier to to drag n' drop then. When I drag things I just keep track of where I am about to drop it. That's kinda easy when you know you can only drag to the Playlist editor for example...
I think ML uses something like that too, cause you can't drag ML objects to anything you'd like... That's why I wondered if you could handle some API to drop things to ML too. /Joonas |
|
|
|
|
|
#4 |
|
Senior Member
|
i thought i said it before... i didn't use any MFC in my code...
those interfaces are the 'generic' way of doing drag&drop... although i think i'm still missing something in there as i can't drag&drop from AL to explorer... Album List for Winamp - Download: v1.43, v2.06, v2.07 beta Wallpaper for Playlist Editor - Download: v1.06 |
|
|
|
|
|
#5 | |
|
Forum King
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
|
Quote:
everything beginning with C really...unless you just called them that yourself? Those interfaces are generic yes but usually (in most example code) they are wrapped in MFC code since they are quite tricky to use. /Joonas |
|
|
|
|
|
|
#6 |
|
Senior Member
|
my understanding is everything beginning with a C is a class... not necessary MFC...
anyway... here is another tutorial that you can take a look at... http://www.catch22.net/tuts/ Album List for Winamp - Download: v1.43, v2.06, v2.07 beta Wallpaper for Playlist Editor - Download: v1.06 |
|
|
|
|
|
#7 | |
|
Forum King
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
|
Quote:
Anyway, you say you can drag from AL to ML? To where in ML? I downloaded AL 2.0 but can't seem to drag anything to ML... /Joonas |
|
|
|
|
|
|
#8 |
|
Major Dude
Join Date: Jan 2004
Location: Brisbane, Australia
Posts: 1,193
|
The names are not badly chosen. It is common practice to prefix a class name with 'C' so that you can distinguish the class name from an object. ("C" is for "Class"). ie,
CSquare square; You can easily tell which is the Class name and which is the object name. MFC just happens to use this standard. Just my 2c on the naming issue :P |
|
|
|
|
|
#9 |
|
Forum King
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
|
Could be...I name my classes T since I am an old-school Borland developer
![]() /Joonas |
|
|
|
|
|
#10 | |
|
Senior Member
|
Quote:
Album List for Winamp - Download: v1.43, v2.06, v2.07 beta Wallpaper for Playlist Editor - Download: v1.06 |
|
|
|
|
|
|
#11 | |
|
Forum King
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
|
Quote:
/Joonas |
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|