home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!mcsun!Germany.EU.net!rrz.uni-koeln.de!unidui!math.fu-berlin.de!Sirius.dfn.de!darwin.sura.net!zaphod.mps.ohio-state.edu!uunet.ca!canrem!dosgate!dosgate![chris.snell@canrem.com]
- From: "chris snell" <chris.snell@canrem.com>
- Subject: drag & drop server
- Message-ID: <1992Dec13.3151.2724@dosgate>
- Reply-To: "chris snell" <chris.snell@canrem.com>
- Organization: Canada Remote Systems
- Distribution: comp
- Date: 13 Dec 92 12:35:54 EST
- Lines: 29
-
- Can anyone tell me how to implement a drag & drop SERVER for Win3.1?
-
- What I have so far:
- 1/ capture mouse
- 2/ get point where user released button
- 3/ get parent window with WindowFromPoint(drop_point)
- 4/ test ws_ex_AccetpFiles style for dest window, if set then proceed
- 5/ ??? get a handle to the ??? dropped filenames structure ???
- 6/ post the wm_DropFiles message to the destination window
-
- My problem is step 5. How do I get a handle to the drop point & drop file
- list that is passed in the wm_DropFiles message? Both the DragQueryPoint
- and DragQueryFiles functions use this handle. If it is just a handle to a
- shareable memory block then what is the record structure of that block?
-
- I program in Turbo Pascal For Windows, but I can likely understand
- examples in C if you must (been a coupla years since I wrote C, but I
- can still puzzle it out).
-
- My email address I believe is chris.snell@canrem.com. I will compile and
- post a result back to this conference.
-
- Thanks in advance. Chris.
-
- ---
- WMR #1 I was on a roll, until I slipped on the butter.
- --
- Canada Remote Systems - Toronto, Ontario
- World's Largest PCBOARD System - 416-629-7000/629-7044
-