Go Back   Winamp Forums > Developer Center > Winamp Development

Reply
Thread Tools Search this Thread Display Modes
Old 12th January 2005, 15:15   #1
Joonas
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
Joonas is offline   Reply With Quote
Old 12th January 2005, 15:41   #2
Safai
Senior Member
 
Join Date: Sep 2000
Location: Canada
Posts: 249
Send a message via ICQ to Safai
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...
Safai is offline   Reply With Quote
Old 15th January 2005, 10:44   #3
Joonas
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
Joonas is offline   Reply With Quote
Old 15th January 2005, 15:27   #4
Safai
Senior Member
 
Join Date: Sep 2000
Location: Canada
Posts: 249
Send a message via ICQ to Safai
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...
Safai is offline   Reply With Quote
Old 16th January 2005, 07:32   #5
Joonas
Forum King
 
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
Quote:
Originally posted by Safai
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...
CUserInterface is MFC no?

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
Joonas is offline   Reply With Quote
Old 16th January 2005, 16:52   #6
Safai
Senior Member
 
Join Date: Sep 2000
Location: Canada
Posts: 249
Send a message via ICQ to Safai
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/
Safai is offline   Reply With Quote
Old 16th January 2005, 22:15   #7
Joonas
Forum King
 
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
Quote:
Originally posted by Safai
[B]hmm... i can drag stuff from my AL to ML... but ML doesn't seem to like dropped m3u files...
You were right...the names were just badly chosen since CWhatever usually means it is a MFC...like CString, CWnd etc...

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
Joonas is offline   Reply With Quote
Old 17th January 2005, 00:44   #8
shaneh
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
shaneh is offline   Reply With Quote
Old 17th January 2005, 07:16   #9
Joonas
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
Joonas is offline   Reply With Quote
Old 17th January 2005, 19:19   #10
Safai
Senior Member
 
Join Date: Sep 2000
Location: Canada
Posts: 249
Send a message via ICQ to Safai
Quote:
Originally posted by Joonas
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
anywhere... it just adds the files to the database if it is not in it already... otherwise, it does nothing...
Safai is offline   Reply With Quote
Old 17th January 2005, 20:16   #11
Joonas
Forum King
 
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
Quote:
Originally posted by Safai
anywhere... it just adds the files to the database if it is not in it already... otherwise, it does nothing...
Hmm...well if I try to drag an item from the album list I just get the O with the line (no drag).

/Joonas
Joonas is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump