🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TTrackBar and Event

#3656
From: Remy Lebeau (TeamB)
Date: Fri, 12 May 2006 08:12
21 lines
1673 bytes
"Christophe MINETTI" <cminetti@ulb.ac.be> wrote in message
news:4464226B.8A469DBC@ulb.ac.be...

> I am using the function PeekMessage() to remove the huge amount
> of event sent by the OnChange event of a TrackBar component.

Why are you doing that?

> What kind of Window message is sent when one changes the trackbar position

As specified in the Win32 API documentation, a TrackBar control sends
WM_HSCROLL and WM_VSCROLL messages to its parent window.  Since the parent
window is a VCL window in this situation, the VCL repackages the messages as
CN_HSCROLL and CN_VSCROLL and sends them back to the TTrackBar for handling.
Using Spy++, I also see WM_MOUSEMOVE, WM_NCHITTEST, WM_USER, WM_PAINT,
WM_CAPTURECHANGED and WM_SETCURSOR messages being sent to the TTrackBar as
well while the thumb is being dragged by the user.


Gambit
Technical Details
Message-ID: <44644595$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4464226B.8A469DBC@ulb.ac.be>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4bc92472e13cbe4b
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: <4464226B.8A469DBC@ulb.ac.be>
Subject: Re: TTrackBar and Event
Date: Fri, 12 May 2006 01:12:49 -0700
Lines: 23
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: 68.69.17.41
Message-ID: <44644595$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1147422101 68.69.17.41 (12 May 2006 01:21:41 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail