🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Dialog Box message loops

#402
From: Jeff Witzer
Date: Wed, 15 Apr 1992 13:56
15 lines
1075 bytes
Gee, the further I get into Windows programming, the quicker the roadblocks
come...

To monitor a communications port, I have been using a PeekMessage () loop
instead of a GetMessage () loop and, if no messages existed, calling a
quick function to check the port.  That worked fine while my main window
was up, however, when the user was presented with a dialog box for some
reason, the PeekMessage () loop was not in control.  I suspected this would
happen, reasoning that dialog boxes had thier own message loop, but I still
need to check the port even during dialog boxes.  How can I gain access to
the dialog box message loop?  I hope I don't have to use regular windows 
and kludge them to look and act like dialog boxes...

Thanks,
Jeff
Technical Details
Message-ID: <29EC35FF.5482@tct.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!sybus.sybus.com!myrddin!tct!jeff

Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.ms.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!sybus.sybus.com!myrddin!tct!jeff
From: jeff@tct.com (Jeff Witzer)
Subject: Dialog Box message loops
Message-ID: <29EC35FF.5482@tct.com>
Date: Wed, 15 Apr 1992 13:56:15 GMT
Distribution: usa
Organization: TC Telemanagement, Clearwater, FL
Lines: 15