News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

drag & drop links?

Started by timertik, April 05, 2007, 02:33:41 AM

Previous topic - Next topic

timertik

can someone tell me how to use drag and drop for URL's  like in firefox i can drag a link and drop it and it is opened as a webpage..
I also need help removing the "http://" part from the beginning and leaving the rest in place.
I have been having trouble with this for as long as i can remember.

as always all help and suggestion's are appreciated.

Tedd

Well the latter is pretty simple, you can either add 7 to your pointer - after checking it actually is "http://" (and remember that the string still really starts 7 characters back, at least for the purposes of cleaning up); or you can just copy the rest of the string backwards 7 characters, until the end.

Drag and drop should be handled by the parent control of wherever the url object is appearing, so you'll need to get it to start the drag operation (hopefully there's a ??N_BEGINDRAG message for you to use.) If that parent control is actually yours, you're in for some fun :bdg
No snowflake in an avalanche feels responsible.