🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Doubleclick

#16988
From: Remy Lebeau (TeamB)
Date: Sun, 13 Apr 2003 01:25
27 lines
1970 bytes
"CapStick" <lol@ljones81.fsnet.co.uk> wrote in message
news:3e989c62@newsgroups.borland.com...

> I can see from win32 help that this
> case WM_COMMAND:
>     switch(LOWORD(wParam))
> is not a standard call in mouse messages

Correct, because mouse events do not use WM_COMMAND at all.

> My Child Windows are All set to SS_NOTIFY

SS_NOTIFY only applies to STATIC controls, not buttons.  If you are, in
fact, using STATIC controls and want to catch their double-clicks, then
fine, WM_COMMAND is what to use.  But you still must test the HIWORD(wParam)
before you can process the rest of the message data correctly.  That is
definately something your original code is missing.  For example:

    case WM_COMMAND:
        if( (HIWORD(wParam) == STN_DBLCLK) && (LOWORD(wParam) ==
IDC_EXAMPLE) )
        {
          // do something here only on doubleclick


Gambit
Technical Details
Message-ID: <3e98bc81$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e9836ec@newsgroups.borland.com> <3e987243$1@newsgroups.borland.com> <3e98910e$1@newsgroups.borland.com> <3e9892c6$1@newsgroups.borland.com> <3e989c62@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 18:36:17 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e9836ec@newsgroups.borland.com> <3e987243$1@newsgroups.borland.com> <3e98910e$1@newsgroups.borland.com> <3e9892c6$1@newsgroups.borland.com> <3e989c62@newsgroups.borland.com>
Subject: Re: Doubleclick
Date: Sat, 12 Apr 2003 18:25:49 -0700
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3e98bc81$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1050197121 207.175.226.26 (12 Apr 2003 18:25:21 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail