Win32 |
Author |
Message |
XNote Kapetan
Joined: 16 Jun 2006 Posts: 532
|
Posted: Wed Nov 15, 2006 1:39 am Post subject: Drag & Drop |
|
|
GipsySoft: DragEdit
"I was inspired by Ahmad Shyazli's DragEdit on CodeGuru.
Ahmad took the usual MFC approach and created a class derived from
CEdit. I thought I could do it with my usual one-function approach and
had a quick hack last night.
The result is a single function call to allow you to get file or folder names
from files or folders dropped onto your edit control." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Tue May 08, 2007 2:34 pm Post subject: |
|
|
RC: Drag and drop is a general purpose transfer model, not exclusive to
Explorer directories
"From the description, it appears that what piers really wants is the destination
path, but who says that the drop destination is a directory? The user might
have dropped the item into an email message, onto an FTP site, onto a Web
site (via Web Folders), or even a directory on an operating system running
inside a virtual machine!" |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
|
Back to top |
|
|
XNote Kapetan
Joined: 16 Jun 2006 Posts: 532
|
Posted: Wed Nov 07, 2007 6:28 pm Post subject: |
|
|
Catch22 - OLE Drag and Drop Tutorial
"This tutorial will ease you through the pain of writing the required OLE inter-
faces necessary to enable drag & drop behaviour. As usual, we will use pure
Win32 API techniques. However, I will be using C++ rather than C, because
C++ is definitely the preferred language to write COM interfaces with. It would
be a simple matter to convert the code to C as I will also explain." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Wed Mar 12, 2008 3:21 pm Post subject: |
|
|
RC: What a drag: Dragging text
"This week's mini-series was almost titled "It's the least you could do"
because I'm going to try to do the absolute least amount of work to
accomplish something interesting with drag and drop. The real purpose
today is to lay some groundwork, but just to have something to show
for our effort, I'll show you how to drag text around." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Thu Jul 24, 2008 4:52 pm Post subject: |
|
|
RC: Reading a contract from the other side: Simulating a drop
"For example, you can drop a file onto a shortcut to a printer, and the file
will print; or you can drop a file onto a folder and it will be copied there
(since we specified DROPEFFECT_COPY | DROPEFFECT_LINK, but folders
prefer copy to link if the Ctrl+Shift keys are not held down); or you can
drop a file onto the Mail Recipient.MAPIMail shortcut in your <Send To>
folder to create a mail message with the file as an attachment." |
|
Back to top |
|
|
|