🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #1715

drag & drop server

#1715
From: chris snell
Date: Sun, 13 Dec 1992 17:35
29 lines
1697 bytes
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
Technical Details
Message-ID: <1992Dec13.3151.2724@dosgate>
Path: arc1-ca.pugleaf.net!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]

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc
Path: arc1-ca.pugleaf.net!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