🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: OnDragOver of TForm

#13556
From: Jonathan Starr
Date: Thu, 09 Oct 2003 17:08
39 lines
2459 bytes
Thank you.

Remy Lebeau (TeamB) wrote:

>"Jonathan Starr" <starr@belsoft.com> wrote in message
>news:3f838962$1@newsgroups.borland.com...
>  
>
>>I have a Multiple Document Interface app.  I assign a handler for
>>OnDragOver for the main form.   I run the app, and drag a file
>>from the desktop to the app's main form.  The handler does not
>>get called.
>>    
>>
>
>It is not supposed to be.  The OnDrag... events are only for the VCL's own
>use when dragging VCL controls around within the application itself.  They
>are not meant for interacting with the rest of the system at all.
>
>For what you ask, you need to either:
>
>1) call DragAcceptFiles() at program startup and then intercept WM_DROPFILES
>messages, using DragQueryFile() and DragQueryPoint() to obtain information
>about each dropped file (this is the easier way to go).
>
>2)  Create your own IDropTarget-derived object and then call
>RegisterDragDrop() at program startup and RevokeDragDrop() at program
>termination.  When a drop occurs, your IDropTarget will be called into by
>the system to handle the operation (this is the way Microsoft recommends
>people to go).
>
>All of this is documented in the Win32 API documentation.
>
>
>Gambit
>
>
>  
>
Technical Details
Message-ID: <3f859416@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!38.144.126.70.MISMATCH!feed3.newsreader.com!newsreader.com!yellow.newsread.com!netaxs.com!newsread.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f838962$1@newsgroups.borland.com> <3f838ea7$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,aaa93bc126f41235
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-09 10:33:22 PST
Date: Thu, 09 Oct 2003 13:08:19 -0400
From: Jonathan Starr <starr@belsoft.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: OnDragOver of TForm
References: <3f838962$1@newsgroups.borland.com> <3f838ea7$1@newsgroups.borland.com>
In-Reply-To: <3f838ea7$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 66.217.150.164
Message-ID: <3f859416@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1065718806 66.217.150.164 (9 Oct 2003 10:00:06 -0700)
Lines: 40
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!38.144.126.70.MISMATCH!feed3.newsreader.com!newsreader.com!yellow.newsread.com!netaxs.com!newsread.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail