🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #439

Re: Dialog Box message loops

#439
From: Rick Masters
Date: Thu, 16 Apr 1992 19:16
18 lines
1163 bytes
Jeff Witzer:

You write that have been checking a communications port
inside your applications PeekMessage loop. I suggest
that you set a timer and check the port every time
you get a WM_TIMER message. In this way you have more control
over how often you check the port.

If you use your message loop, you may run into problems
because when your application yields you may not get
another message for a long time. The only way around
this is to not yield correctly which I suspect you
may be doing if you are using PeekMessage instead
of GetMessage in your main application's message loop.

Rick Masters

P.S. My first post. No scathing flames please.
Technical Details
Message-ID: <1992Apr16.191613.19212@beaver.cs.washington.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!rpi!batcomputer!cornell!uw-beaver!masters
References: <29EC35FF.5482@tct.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.ms.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!rpi!batcomputer!cornell!uw-beaver!masters
From: masters@cs.washington.edu (Rick Masters)
Subject: Re: Dialog Box message loops
Message-ID: <1992Apr16.191613.19212@beaver.cs.washington.edu>
Sender: news@beaver.cs.washington.edu (USENET News System)
Organization: Computer Science & Engineering, U. of Washington, Seattle
References: <29EC35FF.5482@tct.com>
Distribution: usa
Date: Thu, 16 Apr 92 19:16:13 GMT
Lines: 19