Article View: borland.public.cppbuilder.nativeapi
Article #16984Re: Doubleclick
From: CapStick
Date: Sat, 12 Apr 2003 22:22
Date: Sat, 12 Apr 2003 22:22
52 lines
2436 bytes
2436 bytes
"Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message
news:3e987243$1@newsgroups.borland.com...
>
> "CapStick" <lol@ljones81.fsnet.co.uk> wrote in message
> news:3e9836ec@newsgroups.borland.com...
>
> > IDC EXAMPLE is a static control (child window)
> > not in a dialog box but in a main window
> >
> > which gets a reaction from one left click
>
> You're testing for WM_COMMAND, which has nothing to do with mouse clicks.
> There are separate, more specialized, messages for handling that, such as
> WM_LBUTTONDBLCLICK. So, why not just test for that instead?
>
>
> Gambit
>
>
When testing for mouse click
By using
case WM_COMMAND:
switch(LOWORD(wParam))
{
case ID_CONTROL_1: do this
case ID_CONTROL_2: do that
I am able to identify and get action from
each control from its id
Am i missing the point here should i be carrying out some sort of hit test
with mouse parameters
Because Just Putting
case WM_LBUTTONDBLCLK
is only recognised if i double click in
main window client area
Not if i doubleclick in child windows
i only need one of my controls to accept a double click
Main window is set to CS_DBLCKLS
and registered with WS_CLIPCHILDREN
USING WIN32 API free Borland Compiler
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.463 / Virus Database: 262 - Release Date: 17/03/2003
Technical Details
Message-ID:
<3e98910e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!out.nntp.be!propagator2-sterling!news-in.nuthinbutnews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e9836ec@newsgroups.borland.com> <3e987243$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,ed946abb1e9fc00b X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-04-12 15:28:18 PST From: "CapStick" <lol@ljones81.fsnet.co.uk> Newsgroups: borland.public.cppbuilder.nativeapi References: <3e9836ec@newsgroups.borland.com> <3e987243$1@newsgroups.borland.com> Subject: Re: Doubleclick Date: Sat, 12 Apr 2003 23:22:01 +0100 Lines: 54 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 62.25.164.207 Message-ID: <3e98910e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1050185998 62.25.164.207 (12 Apr 2003 15:19:58 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!out.nntp.be!propagator2-sterling!news-in.nuthinbutnews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail