🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Clear win.messages buffer

#14045
From: Bob Gonder
Date: Sun, 07 Sep 2003 02:36
26 lines
1561 bytes
Majo Petrik wrote:

>Is there any way to clear (something like) windows messages buffer? I'd like
>just to put some routine into the mousewheelmove event next to zoom
>procedure...

You could ignore the wheel while you are zooming:

bool	calculating=false;

messageproc(....)
{
   ......
	case WM_WHEEL: (or whatever it is)
		if( ! calculating )
		{	startThread( zoom );
		}
		return whatever;
  .......
}
zoom()
{	/* or put the test here  if( !calculating ) */
	calculating = true;
	do_the_zoom();
	calculating = false;
}
Technical Details
Message-ID: <qt5llvohm2u0gumlt0ajqc78tr9fe42dn2@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f5a63df@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,e1ab6c7003eccd3a
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-09-06 19:39:42 PST
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Clear win.messages buffer
Date: Sat, 06 Sep 2003 19:36:35 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <qt5llvohm2u0gumlt0ajqc78tr9fe42dn2@4ax.com>
References: <3f5a63df@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.91/32.564
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.31.165.106
X-Trace: newsgroups.borland.com 1062902197 67.31.165.106 (6 Sep 2003 19:36:37 -0700)
Lines: 28
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail