home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / misc / 4188 < prev    next >
Encoding:
Text File  |  1992-12-13  |  1.6 KB  |  41 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. 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]
  3. From: "chris snell" <chris.snell@canrem.com>
  4. Subject: drag & drop server
  5. Message-ID: <1992Dec13.3151.2724@dosgate>
  6. Reply-To: "chris snell" <chris.snell@canrem.com>
  7. Organization: Canada Remote Systems
  8. Distribution: comp
  9. Date: 13 Dec 92 12:35:54 EST
  10. Lines: 29
  11.  
  12. Can anyone tell me how to implement a drag & drop SERVER for Win3.1?
  13.  
  14. What I have so far:
  15. 1/ capture mouse
  16. 2/ get point where user released button
  17. 3/ get parent window with WindowFromPoint(drop_point)
  18. 4/ test ws_ex_AccetpFiles style for dest window, if set then proceed
  19. 5/ ??? get a handle to the ??? dropped filenames structure ???
  20. 6/ post the wm_DropFiles message to the destination window
  21.  
  22. My problem is step 5. How do I get a handle to the drop point & drop file 
  23. list that is passed in the wm_DropFiles message? Both the DragQueryPoint 
  24. and DragQueryFiles functions use this handle. If it is just a handle to a 
  25. shareable memory block then what is the record structure of that block?
  26.  
  27. I program in Turbo Pascal For Windows, but I can likely understand 
  28. examples in C if you must (been a coupla years since I wrote C, but I 
  29. can still puzzle it out).
  30.  
  31. My email address I believe is chris.snell@canrem.com. I will compile and 
  32. post a result back to this conference.
  33.  
  34. Thanks in advance. Chris.
  35.  
  36. ---
  37. WMR #1 I was on a roll, until I slipped on the butter.
  38. --
  39. Canada Remote Systems  - Toronto, Ontario
  40. World's Largest PCBOARD System - 416-629-7000/629-7044
  41.