🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Distinguishing right from left drag

#2963
From: Remy Lebeau (TeamB)
Date: Fri, 20 Oct 2006 10:10
17 lines
1547 bytes
"Richard Kavanagh" <dd.foldhill@google-ignore-mail.com> wrote in message
news:4538a008@newsgroups.borland.com...

> I have a form where I have overridden WindowProc to enable me to
> process the WM_DROPFILES message. This works fine. How do I
> distinguish whether the user has dragged with the left or right mouse
> buttons?

The WM_DROPFILES message does not provide that information.  You would have
to implement OLE Drag&Drop instead, by deriving a class from IDropTarget and
then call RegisterDragDrop().  The various methods of the IDropTarget
interface specify the keyboard and mouse keys that are used during the
dragging.


Gambit
Technical Details
Message-ID: <4538a402$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4538a008@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,8d45674709e6b466
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4538a008@newsgroups.borland.com>
Subject: Re: Distinguishing right from left drag
Date: Fri, 20 Oct 2006 03:10:28 -0700
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 69.169.4.232
Message-ID: <4538a402$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1161339906 69.169.4.232 (20 Oct 2006 03:25:06 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail