🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11337

Re: Get message form app-window.

#11337
From: Remy Lebeau (TeamB)
Date: Fri, 13 Feb 2004 18:21
20 lines
1729 bytes
"Cactus" <a@b.com> wrote in message
news:402ca730$1@newsgroups.borland.com...

> When draw a file or anything else to a application's
> window. how the application getting it?

For files specifically, you can have the form call the DragAcceptFiles()
function during startup and then intercept the WM_DROPFILES message in the
form's WndProc() method.

For anything else, though, you need to work with the OS's COM interfaces
instead.  Specifically, you need to derive your own class from the
IDropTarget interface, and then register it at application startup via the
RegisterDragDrop() function.  When an item is dropped, your
IDropTarget::Drop() method will be called, which you then need to extract
the desired data from the provided IDataObject interface.


Gambit
Technical Details
Message-ID: <402d13c6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <402ca730$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,873ed39da4f4a729
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-02-13 10:31:29 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <402ca730$1@newsgroups.borland.com>
Subject: Re: Get message form app-window.
Date: Fri, 13 Feb 2004 10:21:05 -0800
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.138.253
Message-ID: <402d13c6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1076696006 67.22.138.253 (13 Feb 2004 10:13:26 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail